public class Translation extends Object implements Serializable
Constructor and Description |
---|
Translation() |
Modifier and Type | Method and Description |
---|---|
void |
addEventTranslationSpec(EventTranslationSpec vEventTranslationSpec) |
void |
addEventTranslationSpec(int index,
EventTranslationSpec vEventTranslationSpec) |
Enumeration<EventTranslationSpec> |
enumerateEventTranslationSpec()
Method enumerateEventTranslationSpec.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
EventTranslationSpec[] |
getEventTranslationSpec()
Method getEventTranslationSpec.Returns the contents of the
collection in an Array.
|
EventTranslationSpec |
getEventTranslationSpec(int index)
Method getEventTranslationSpec.
|
List<EventTranslationSpec> |
getEventTranslationSpecCollection()
Method getEventTranslationSpecCollection.Returns a reference
to '_eventTranslationSpecList'.
|
int |
getEventTranslationSpecCount()
Method getEventTranslationSpecCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<EventTranslationSpec> |
iterateEventTranslationSpec()
Method iterateEventTranslationSpec.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllEventTranslationSpec() |
boolean |
removeEventTranslationSpec(EventTranslationSpec vEventTranslationSpec)
Method removeEventTranslationSpec.
|
EventTranslationSpec |
removeEventTranslationSpecAt(int index)
Method removeEventTranslationSpecAt.
|
void |
setEventTranslationSpec(EventTranslationSpec[] vEventTranslationSpecArray) |
void |
setEventTranslationSpec(int index,
EventTranslationSpec vEventTranslationSpec) |
void |
setEventTranslationSpec(List<EventTranslationSpec> vEventTranslationSpecList)
Sets the value of '_eventTranslationSpecList' by copying the
given Vector.
|
void |
setEventTranslationSpecCollection(List<EventTranslationSpec> eventTranslationSpecList)
Deprecated.
|
static Translation |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addEventTranslationSpec(EventTranslationSpec vEventTranslationSpec) throws IndexOutOfBoundsException
vEventTranslationSpec
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addEventTranslationSpec(int index, EventTranslationSpec vEventTranslationSpec) throws IndexOutOfBoundsException
index
- vEventTranslationSpec
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<EventTranslationSpec> enumerateEventTranslationSpec()
public boolean equals(Object obj)
public EventTranslationSpec getEventTranslationSpec(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic EventTranslationSpec[] getEventTranslationSpec()
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 List<EventTranslationSpec> getEventTranslationSpecCollection()
public int getEventTranslationSpecCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<EventTranslationSpec> iterateEventTranslationSpec()
public void marshal(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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllEventTranslationSpec()
public boolean removeEventTranslationSpec(EventTranslationSpec vEventTranslationSpec)
vEventTranslationSpec
- public EventTranslationSpec removeEventTranslationSpecAt(int index)
index
- public void setEventTranslationSpec(int index, EventTranslationSpec vEventTranslationSpec) throws IndexOutOfBoundsException
index
- vEventTranslationSpec
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setEventTranslationSpec(EventTranslationSpec[] vEventTranslationSpecArray)
vEventTranslationSpecArray
- public void setEventTranslationSpec(List<EventTranslationSpec> vEventTranslationSpecList)
vEventTranslationSpecList
- the Vector to copy.public void setEventTranslationSpecCollection(List<EventTranslationSpec> eventTranslationSpecList)
eventTranslationSpecList
- the Vector to set.public static Translation unmarshal(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 marshalingorg.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 schemaCopyright © 2017. All rights reserved.