|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.essex.xul.castor.Input
public class Input
Class Input.
Constructor Summary | |
---|---|
Input()
|
Method Summary | |
---|---|
void |
addOption(int index,
Option vOption)
|
void |
addOption(Option vOption)
|
java.util.Enumeration<? extends Option> |
enumerateOption()
Method enumerateOption. |
java.lang.String |
getLabel()
Returns the value of field 'label'. |
java.lang.String |
getName()
Returns the value of field 'name'. |
Option[] |
getOption()
Method getOption.Returns the contents of the collection in an Array. |
Option |
getOption(int index)
Method getOption. |
int |
getOptionCount()
Method getOptionCount. |
InputTypeType |
getType()
Returns the value of field 'type'. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Option> |
iterateOption()
Method iterateOption. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllOption()
|
boolean |
removeOption(Option vOption)
Method removeOption. |
Option |
removeOptionAt(int index)
Method removeOptionAt. |
void |
setLabel(java.lang.String label)
Sets the value of field 'label'. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setOption(int index,
Option vOption)
|
void |
setOption(Option[] vOptionArray)
|
void |
setType(InputTypeType type)
Sets the value of field 'type'. |
static Input |
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 Input()
Method Detail |
---|
public void addOption(Option vOption) throws java.lang.IndexOutOfBoundsException
vOption
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addOption(int index, Option vOption) throws java.lang.IndexOutOfBoundsException
index
- vOption
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Option> enumerateOption()
public java.lang.String getLabel()
public java.lang.String getName()
public Option getOption(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Option[] getOption()
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 getOptionCount()
public InputTypeType getType()
public boolean isValid()
public java.util.Iterator<? extends Option> iterateOption()
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 removeAllOption()
public boolean removeOption(Option vOption)
vOption
-
public Option removeOptionAt(int index)
index
-
public void setLabel(java.lang.String label)
label
- the value of field 'label'.public void setName(java.lang.String name)
name
- the value of field 'name'.public void setOption(int index, Option vOption) throws java.lang.IndexOutOfBoundsException
index
- vOption
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setOption(Option[] vOptionArray)
vOptionArray
- public void setType(InputTypeType type)
type
- the value of field 'type'.public static Input 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 |