|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.destinationPaths.DestinationPaths
public class DestinationPaths
Top-level element for the destinationPaths.xml configuration file.
| Constructor Summary | |
|---|---|
DestinationPaths()
|
|
| Method Summary | |
|---|---|
void |
addPath(int index,
Path vPath)
|
void |
addPath(Path vPath)
|
Enumeration<Path> |
enumeratePath()
Method enumeratePath. |
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. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DestinationPaths()
| Method Detail |
|---|
public void addPath(Path vPath)
throws IndexOutOfBoundsException
vPath -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public 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 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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.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 | ||||||||