|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.essex.xul.castor.Inputs
public class Inputs
Class Inputs.
Constructor Summary | |
---|---|
Inputs()
|
Method Summary | |
---|---|
void |
addInput(Input vInput)
|
void |
addInput(int index,
Input vInput)
|
java.util.Enumeration<? extends Input> |
enumerateInput()
Method enumerateInput. |
Input[] |
getInput()
Method getInput.Returns the contents of the collection in an Array. |
Input |
getInput(int index)
Method getInput. |
int |
getInputCount()
Method getInputCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Input> |
iterateInput()
Method iterateInput. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllInput()
|
boolean |
removeInput(Input vInput)
Method removeInput. |
Input |
removeInputAt(int index)
Method removeInputAt. |
void |
setInput(Input[] vInputArray)
|
void |
setInput(int index,
Input vInput)
|
static Inputs |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Inputs()
Method Detail |
---|
public void addInput(Input vInput) throws java.lang.IndexOutOfBoundsException
vInput
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addInput(int index, Input vInput) throws java.lang.IndexOutOfBoundsException
index
- vInput
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Input> enumerateInput()
public Input getInput(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Input[] getInput()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getInputCount()
public boolean isValid()
public java.util.Iterator<? extends Input> iterateInput()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllInput()
public boolean removeInput(Input vInput)
vInput
-
public Input removeInputAt(int index)
index
-
public void setInput(int index, Input vInput) throws java.lang.IndexOutOfBoundsException
index
- vInput
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setInput(Input[] vInputArray)
vInputArray
- public static Inputs unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |