public class DestinationPaths extends Object implements Serializable
Constructor and Description |
---|
DestinationPaths() |
Modifier and Type | Method and Description |
---|---|
void |
addPath(int index,
Path vPath) |
void |
addPath(Path vPath) |
Enumeration<Path> |
enumeratePath()
Method enumeratePath.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Header |
getHeader()
Returns the value of field 'header'.
|
Path[] |
getPath()
Method getPath.Returns the contents of the collection in an
Array.
|
Path |
getPath(int index)
Method getPath.
|
List<Path> |
getPathCollection()
Method getPathCollection.Returns a reference to '_pathList'.
|
int |
getPathCount()
Method getPathCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Path> |
iteratePath()
Method iteratePath.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllPath() |
boolean |
removePath(Path vPath)
Method removePath.
|
Path |
removePathAt(int index)
Method removePathAt.
|
void |
setHeader(Header header)
Sets the value of field 'header'.
|
void |
setPath(int index,
Path vPath) |
void |
setPath(List<Path> vPathList)
Sets the value of '_pathList' by copying the given Vector.
|
void |
setPath(Path[] vPathArray) |
void |
setPathCollection(List<Path> pathList)
Deprecated.
|
static DestinationPaths |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addPath(Path vPath) throws IndexOutOfBoundsException
vPath
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addPath(int index, Path vPath) throws IndexOutOfBoundsException
index
- vPath
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Path> enumeratePath()
public boolean equals(Object obj)
public Header getHeader()
public Path getPath(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Path[] getPath()
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<Path> getPathCollection()
public int getPathCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Path> iteratePath()
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 removeAllPath()
public boolean removePath(Path vPath)
vPath
- public Path removePathAt(int index)
index
- public void setHeader(Header header)
header
- the value of field 'header'.public void setPath(int index, Path vPath) throws IndexOutOfBoundsException
index
- vPath
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setPath(Path[] vPathArray)
vPathArray
- public void setPath(List<Path> vPathList)
vPathList
- the Vector to copy.public void setPathCollection(List<Path> pathList)
pathList
- the Vector to set.public static DestinationPaths 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.