public class Locations extends Object implements Serializable
Constructor and Description |
---|
Locations() |
Modifier and Type | Method and Description |
---|---|
void |
addLocationDef(int index,
LocationDef vLocationDef) |
void |
addLocationDef(LocationDef vLocationDef) |
Enumeration<LocationDef> |
enumerateLocationDef()
Method enumerateLocationDef.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
LocationDef[] |
getLocationDef()
Method getLocationDef.Returns the contents of the collection
in an Array.
|
LocationDef |
getLocationDef(int index)
Method getLocationDef.
|
List<LocationDef> |
getLocationDefCollection()
Method getLocationDefCollection.Returns a reference to
'_locationDefList'.
|
int |
getLocationDefCount()
Method getLocationDefCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<LocationDef> |
iterateLocationDef()
Method iterateLocationDef.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllLocationDef() |
boolean |
removeLocationDef(LocationDef vLocationDef)
Method removeLocationDef.
|
LocationDef |
removeLocationDefAt(int index)
Method removeLocationDefAt.
|
void |
setLocationDef(int index,
LocationDef vLocationDef) |
void |
setLocationDef(List<LocationDef> vLocationDefList)
Sets the value of '_locationDefList' by copying the given
Vector.
|
void |
setLocationDef(LocationDef[] vLocationDefArray) |
void |
setLocationDefCollection(List<LocationDef> locationDefList)
Deprecated.
|
static Locations |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addLocationDef(LocationDef vLocationDef) throws IndexOutOfBoundsException
vLocationDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addLocationDef(int index, LocationDef vLocationDef) throws IndexOutOfBoundsException
index
- vLocationDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<LocationDef> enumerateLocationDef()
public boolean equals(Object obj)
public LocationDef getLocationDef(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic LocationDef[] getLocationDef()
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<LocationDef> getLocationDefCollection()
public int getLocationDefCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<LocationDef> iterateLocationDef()
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 removeAllLocationDef()
public boolean removeLocationDef(LocationDef vLocationDef)
vLocationDef
- public LocationDef removeLocationDefAt(int index)
index
- public void setLocationDef(int index, LocationDef vLocationDef) throws IndexOutOfBoundsException
index
- vLocationDef
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setLocationDef(LocationDef[] vLocationDefArray)
vLocationDefArray
- public void setLocationDef(List<LocationDef> vLocationDefList)
vLocationDefList
- the Vector to copy.public void setLocationDefCollection(List<LocationDef> locationDefList)
locationDefList
- the Vector to set.public static Locations 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 © 2015. All Rights Reserved.