|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.xml.ClassChoice
public class ClassChoice
Class ClassChoice.
Constructor Summary | |
---|---|
ClassChoice()
|
Method Summary | |
---|---|
void |
addContainer(Container vContainer)
|
void |
addContainer(int index,
Container vContainer)
|
void |
addFieldMapping(FieldMapping vFieldMapping)
|
void |
addFieldMapping(int index,
FieldMapping vFieldMapping)
|
java.util.Enumeration<? extends Container> |
enumerateContainer()
Method enumerateContainer. |
java.util.Enumeration<? extends FieldMapping> |
enumerateFieldMapping()
Method enumerateFieldMapping. |
Container[] |
getContainer()
Method getContainer.Returns the contents of the collection in an Array. |
Container |
getContainer(int index)
Method getContainer. |
int |
getContainerCount()
Method getContainerCount. |
FieldMapping[] |
getFieldMapping()
Method getFieldMapping.Returns the contents of the collection in an Array. |
FieldMapping |
getFieldMapping(int index)
Method getFieldMapping. |
int |
getFieldMappingCount()
Method getFieldMappingCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Container> |
iterateContainer()
Method iterateContainer. |
java.util.Iterator<? extends FieldMapping> |
iterateFieldMapping()
Method iterateFieldMapping. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllContainer()
|
void |
removeAllFieldMapping()
|
boolean |
removeContainer(Container vContainer)
Method removeContainer. |
Container |
removeContainerAt(int index)
Method removeContainerAt. |
boolean |
removeFieldMapping(FieldMapping vFieldMapping)
Method removeFieldMapping. |
FieldMapping |
removeFieldMappingAt(int index)
Method removeFieldMappingAt. |
void |
setContainer(Container[] vContainerArray)
|
void |
setContainer(int index,
Container vContainer)
|
void |
setFieldMapping(FieldMapping[] vFieldMappingArray)
|
void |
setFieldMapping(int index,
FieldMapping vFieldMapping)
|
static ClassChoice |
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 ClassChoice()
Method Detail |
---|
public void addContainer(Container vContainer) throws java.lang.IndexOutOfBoundsException
vContainer
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addContainer(int index, Container vContainer) throws java.lang.IndexOutOfBoundsException
index
- vContainer
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addFieldMapping(FieldMapping vFieldMapping) throws java.lang.IndexOutOfBoundsException
vFieldMapping
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addFieldMapping(int index, FieldMapping vFieldMapping) throws java.lang.IndexOutOfBoundsException
index
- vFieldMapping
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Container> enumerateContainer()
public java.util.Enumeration<? extends FieldMapping> enumerateFieldMapping()
public Container getContainer(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Container[] getContainer()
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 getContainerCount()
public FieldMapping getFieldMapping(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic FieldMapping[] getFieldMapping()
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 getFieldMappingCount()
public boolean isValid()
public java.util.Iterator<? extends Container> iterateContainer()
public java.util.Iterator<? extends FieldMapping> iterateFieldMapping()
public void marshal(java.io.Writer out) throws MarshalException, ValidationException
out
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
ValidationException
- if this
object is an invalid instance according to the schema
MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllContainer()
public void removeAllFieldMapping()
public boolean removeContainer(Container vContainer)
vContainer
-
public Container removeContainerAt(int index)
index
-
public boolean removeFieldMapping(FieldMapping vFieldMapping)
vFieldMapping
-
public FieldMapping removeFieldMappingAt(int index)
index
-
public void setContainer(int index, Container vContainer) throws java.lang.IndexOutOfBoundsException
index
- vContainer
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setContainer(Container[] vContainerArray)
vContainerArray
- public void setFieldMapping(int index, FieldMapping vFieldMapping) throws java.lang.IndexOutOfBoundsException
index
- vFieldMapping
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setFieldMapping(FieldMapping[] vFieldMappingArray)
vFieldMappingArray
- public static ClassChoice unmarshal(java.io.Reader reader) throws MarshalException, ValidationException
reader
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws ValidationException
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 |