public class MappingRoot extends Object implements Serializable
Constructor and Description |
---|
MappingRoot() |
Modifier and Type | Method and Description |
---|---|
void |
addClassMapping(ClassMapping vClassMapping) |
void |
addClassMapping(int index,
ClassMapping vClassMapping) |
void |
addFieldHandlerDef(FieldHandlerDef vFieldHandlerDef) |
void |
addFieldHandlerDef(int index,
FieldHandlerDef vFieldHandlerDef) |
void |
addInclude(Include vInclude) |
void |
addInclude(int index,
Include vInclude) |
void |
addKeyGeneratorDef(int index,
KeyGeneratorDef vKeyGeneratorDef) |
void |
addKeyGeneratorDef(KeyGeneratorDef vKeyGeneratorDef) |
Enumeration<? extends ClassMapping> |
enumerateClassMapping()
Method enumerateClassMapping.
|
Enumeration<? extends FieldHandlerDef> |
enumerateFieldHandlerDef()
Method enumerateFieldHandlerDef.
|
Enumeration<? extends Include> |
enumerateInclude()
Method enumerateInclude.
|
Enumeration<? extends KeyGeneratorDef> |
enumerateKeyGeneratorDef()
Method enumerateKeyGeneratorDef.
|
ClassMapping[] |
getClassMapping()
Method getClassMapping.Returns the contents of the
collection in an Array.
|
ClassMapping |
getClassMapping(int index)
Method getClassMapping.
|
int |
getClassMappingCount()
Method getClassMappingCount.
|
String |
getDescription()
Returns the value of field 'description'.
|
FieldHandlerDef[] |
getFieldHandlerDef()
Method getFieldHandlerDef.Returns the contents of the
collection in an Array.
|
FieldHandlerDef |
getFieldHandlerDef(int index)
Method getFieldHandlerDef.
|
int |
getFieldHandlerDefCount()
Method getFieldHandlerDefCount.
|
Include[] |
getInclude()
Method getInclude.Returns the contents of the collection in
an Array.
|
Include |
getInclude(int index)
Method getInclude.
|
int |
getIncludeCount()
Method getIncludeCount.
|
KeyGeneratorDef[] |
getKeyGeneratorDef()
Method getKeyGeneratorDef.Returns the contents of the
collection in an Array.
|
KeyGeneratorDef |
getKeyGeneratorDef(int index)
Method getKeyGeneratorDef.
|
int |
getKeyGeneratorDefCount()
Method getKeyGeneratorDefCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<? extends ClassMapping> |
iterateClassMapping()
Method iterateClassMapping.
|
Iterator<? extends FieldHandlerDef> |
iterateFieldHandlerDef()
Method iterateFieldHandlerDef.
|
Iterator<? extends Include> |
iterateInclude()
Method iterateInclude.
|
Iterator<? extends KeyGeneratorDef> |
iterateKeyGeneratorDef()
Method iterateKeyGeneratorDef.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllClassMapping() |
void |
removeAllFieldHandlerDef() |
void |
removeAllInclude() |
void |
removeAllKeyGeneratorDef() |
boolean |
removeClassMapping(ClassMapping vClassMapping)
Method removeClassMapping.
|
ClassMapping |
removeClassMappingAt(int index)
Method removeClassMappingAt.
|
boolean |
removeFieldHandlerDef(FieldHandlerDef vFieldHandlerDef)
Method removeFieldHandlerDef.
|
FieldHandlerDef |
removeFieldHandlerDefAt(int index)
Method removeFieldHandlerDefAt.
|
boolean |
removeInclude(Include vInclude)
Method removeInclude.
|
Include |
removeIncludeAt(int index)
Method removeIncludeAt.
|
boolean |
removeKeyGeneratorDef(KeyGeneratorDef vKeyGeneratorDef)
Method removeKeyGeneratorDef.
|
KeyGeneratorDef |
removeKeyGeneratorDefAt(int index)
Method removeKeyGeneratorDefAt.
|
void |
setClassMapping(ClassMapping[] vClassMappingArray) |
void |
setClassMapping(int index,
ClassMapping vClassMapping) |
void |
setDescription(String description)
Sets the value of field 'description'.
|
void |
setFieldHandlerDef(FieldHandlerDef[] vFieldHandlerDefArray) |
void |
setFieldHandlerDef(int index,
FieldHandlerDef vFieldHandlerDef) |
void |
setInclude(Include[] vIncludeArray) |
void |
setInclude(int index,
Include vInclude) |
void |
setKeyGeneratorDef(int index,
KeyGeneratorDef vKeyGeneratorDef) |
void |
setKeyGeneratorDef(KeyGeneratorDef[] vKeyGeneratorDefArray) |
static MappingRoot |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addClassMapping(ClassMapping vClassMapping) throws IndexOutOfBoundsException
vClassMapping
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addClassMapping(int index, ClassMapping vClassMapping) throws IndexOutOfBoundsException
index
- vClassMapping
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addFieldHandlerDef(FieldHandlerDef vFieldHandlerDef) throws IndexOutOfBoundsException
vFieldHandlerDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addFieldHandlerDef(int index, FieldHandlerDef vFieldHandlerDef) throws IndexOutOfBoundsException
index
- vFieldHandlerDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addInclude(Include vInclude) throws IndexOutOfBoundsException
vInclude
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addInclude(int index, Include vInclude) throws IndexOutOfBoundsException
index
- vInclude
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addKeyGeneratorDef(KeyGeneratorDef vKeyGeneratorDef) throws IndexOutOfBoundsException
vKeyGeneratorDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addKeyGeneratorDef(int index, KeyGeneratorDef vKeyGeneratorDef) throws IndexOutOfBoundsException
index
- vKeyGeneratorDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<? extends ClassMapping> enumerateClassMapping()
public Enumeration<? extends FieldHandlerDef> enumerateFieldHandlerDef()
public Enumeration<? extends Include> enumerateInclude()
public Enumeration<? extends KeyGeneratorDef> enumerateKeyGeneratorDef()
public ClassMapping getClassMapping(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic ClassMapping[] getClassMapping()
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 getClassMappingCount()
public String getDescription()
public FieldHandlerDef getFieldHandlerDef(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic FieldHandlerDef[] getFieldHandlerDef()
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 getFieldHandlerDefCount()
public Include getInclude(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Include[] getInclude()
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 getIncludeCount()
public KeyGeneratorDef getKeyGeneratorDef(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic KeyGeneratorDef[] getKeyGeneratorDef()
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 getKeyGeneratorDefCount()
public boolean isValid()
public Iterator<? extends ClassMapping> iterateClassMapping()
public Iterator<? extends FieldHandlerDef> iterateFieldHandlerDef()
public Iterator<? extends Include> iterateInclude()
public Iterator<? extends KeyGeneratorDef> iterateKeyGeneratorDef()
public void marshal(Writer out) throws MarshalException, ValidationException
out
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException
handler
- IOException
- if an IOException occurs during
marshalingValidationException
- if this
object is an invalid instance according to the schemaMarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllClassMapping()
public void removeAllFieldHandlerDef()
public void removeAllInclude()
public void removeAllKeyGeneratorDef()
public boolean removeClassMapping(ClassMapping vClassMapping)
vClassMapping
- public ClassMapping removeClassMappingAt(int index)
index
- public boolean removeFieldHandlerDef(FieldHandlerDef vFieldHandlerDef)
vFieldHandlerDef
- public FieldHandlerDef removeFieldHandlerDefAt(int index)
index
- public boolean removeInclude(Include vInclude)
vInclude
- public Include removeIncludeAt(int index)
index
- public boolean removeKeyGeneratorDef(KeyGeneratorDef vKeyGeneratorDef)
vKeyGeneratorDef
- public KeyGeneratorDef removeKeyGeneratorDefAt(int index)
index
- public void setClassMapping(int index, ClassMapping vClassMapping) throws IndexOutOfBoundsException
index
- vClassMapping
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setClassMapping(ClassMapping[] vClassMappingArray)
vClassMappingArray
- public void setDescription(String description)
description
- the value of field 'description'.public void setFieldHandlerDef(int index, FieldHandlerDef vFieldHandlerDef) throws IndexOutOfBoundsException
index
- vFieldHandlerDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setFieldHandlerDef(FieldHandlerDef[] vFieldHandlerDefArray)
vFieldHandlerDefArray
- public void setInclude(int index, Include vInclude) throws IndexOutOfBoundsException
index
- vInclude
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setInclude(Include[] vIncludeArray)
vIncludeArray
- public void setKeyGeneratorDef(int index, KeyGeneratorDef vKeyGeneratorDef) throws IndexOutOfBoundsException
index
- vKeyGeneratorDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setKeyGeneratorDef(KeyGeneratorDef[] vKeyGeneratorDefArray)
vKeyGeneratorDefArray
- public static MappingRoot unmarshal(Reader reader) throws MarshalException, ValidationException
reader
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- 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 schemaCopyright © 2021. All rights reserved.