|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.modelimport.Node
public class Node
A node in OpenNMS is a network entity that is used to contain network interfaces and those interface's services.
| Constructor Summary | |
|---|---|
Node()
|
|
| Method Summary | |
|---|---|
void |
addAsset(Asset vAsset)
|
void |
addAsset(int index,
Asset vAsset)
|
void |
addCategory(Category vCategory)
|
void |
addCategory(int index,
Category vCategory)
|
void |
addInterface(Interface vInterface)
|
void |
addInterface(int index,
Interface vInterface)
|
Enumeration<Asset> |
enumerateAsset()
Method enumerateAsset. |
Enumeration<Category> |
enumerateCategory()
Method enumerateCategory. |
Enumeration<Interface> |
enumerateInterface()
Method enumerateInterface. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
Asset[] |
getAsset()
Method getAsset.Returns the contents of the collection in an Array. |
Asset |
getAsset(int index)
Method getAsset. |
List<Asset> |
getAssetCollection()
Method getAssetCollection.Returns a reference to '_assetList'. |
int |
getAssetCount()
Method getAssetCount. |
String |
getBuilding()
Returns the value of field 'building'. |
Category[] |
getCategory()
Method getCategory.Returns the contents of the collection in an Array. |
Category |
getCategory(int index)
Method getCategory. |
List<Category> |
getCategoryCollection()
Method getCategoryCollection.Returns a reference to '_categoryList'. |
int |
getCategoryCount()
Method getCategoryCount. |
String |
getCity()
Returns the value of field 'city'. |
String |
getForeignId()
Returns the value of field 'foreignId'. |
Interface[] |
getInterface()
Method getInterface.Returns the contents of the collection in an Array. |
Interface |
getInterface(int index)
Method getInterface. |
List<Interface> |
getInterfaceCollection()
Method getInterfaceCollection.Returns a reference to '_interfaceList'. |
int |
getInterfaceCount()
Method getInterfaceCount. |
String |
getNodeLabel()
Returns the value of field 'nodeLabel'. |
String |
getParentForeignId()
Returns the value of field 'parentForeignId'. |
String |
getParentNodeLabel()
Returns the value of field 'parentNodeLabel'. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<Asset> |
iterateAsset()
Method iterateAsset. |
Iterator<Category> |
iterateCategory()
Method iterateCategory. |
Iterator<Interface> |
iterateInterface()
Method iterateInterface. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllAsset()
|
void |
removeAllCategory()
|
void |
removeAllInterface()
|
boolean |
removeAsset(Asset vAsset)
Method removeAsset. |
Asset |
removeAssetAt(int index)
Method removeAssetAt. |
boolean |
removeCategory(Category vCategory)
Method removeCategory. |
Category |
removeCategoryAt(int index)
Method removeCategoryAt. |
boolean |
removeInterface(Interface vInterface)
Method removeInterface. |
Interface |
removeInterfaceAt(int index)
Method removeInterfaceAt. |
void |
setAsset(Asset[] vAssetArray)
|
void |
setAsset(int index,
Asset vAsset)
|
void |
setAsset(List<Asset> vAssetList)
Sets the value of '_assetList' by copying the given Vector. |
void |
setAssetCollection(List<Asset> assetList)
Deprecated. |
void |
setBuilding(String building)
Sets the value of field 'building'. |
void |
setCategory(Category[] vCategoryArray)
|
void |
setCategory(int index,
Category vCategory)
|
void |
setCategory(List<Category> vCategoryList)
Sets the value of '_categoryList' by copying the given Vector. |
void |
setCategoryCollection(List<Category> categoryList)
Deprecated. |
void |
setCity(String city)
Sets the value of field 'city'. |
void |
setForeignId(String foreignId)
Sets the value of field 'foreignId'. |
void |
setInterface(Interface[] vInterfaceArray)
|
void |
setInterface(int index,
Interface vInterface)
|
void |
setInterface(List<Interface> vInterfaceList)
Sets the value of '_interfaceList' by copying the given Vector. |
void |
setInterfaceCollection(List<Interface> _interfaceList)
Deprecated. |
void |
setNodeLabel(String nodeLabel)
Sets the value of field 'nodeLabel'. |
void |
setParentForeignId(String parentForeignId)
Sets the value of field 'parentForeignId'. |
void |
setParentNodeLabel(String parentNodeLabel)
Sets the value of field 'parentNodeLabel'. |
static Node |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Node()
| Method Detail |
|---|
public void addAsset(Asset vAsset)
throws IndexOutOfBoundsException
vAsset -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addAsset(int index,
Asset vAsset)
throws IndexOutOfBoundsException
index - vAsset -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addCategory(Category vCategory)
throws IndexOutOfBoundsException
vCategory -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addCategory(int index,
Category vCategory)
throws IndexOutOfBoundsException
index - vCategory -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addInterface(Interface vInterface)
throws IndexOutOfBoundsException
vInterface -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addInterface(int index,
Interface vInterface)
throws IndexOutOfBoundsException
index - vInterface -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Asset> enumerateAsset()
public Enumeration<Category> enumerateCategory()
public Enumeration<Interface> enumerateInterface()
public boolean equals(Object obj)
equals in class Objectobj -
public Asset getAsset(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Asset[] getAsset()
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<Asset> getAssetCollection()
public int getAssetCount()
public String getBuilding()
public Category getCategory(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Category[] getCategory()
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<Category> getCategoryCollection()
public int getCategoryCount()
public String getCity()
public String getForeignId()
public Interface getInterface(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Interface[] getInterface()
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<Interface> getInterfaceCollection()
public int getInterfaceCount()
public String getNodeLabel()
public String getParentForeignId()
public String getParentNodeLabel()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic boolean isValid()
public Iterator<Asset> iterateAsset()
public Iterator<Category> iterateCategory()
public Iterator<Interface> iterateInterface()
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 removeAllAsset()
public void removeAllCategory()
public void removeAllInterface()
public boolean removeAsset(Asset vAsset)
vAsset -
public Asset removeAssetAt(int index)
index -
public boolean removeCategory(Category vCategory)
vCategory -
public Category removeCategoryAt(int index)
index -
public boolean removeInterface(Interface vInterface)
vInterface -
public Interface removeInterfaceAt(int index)
index -
public void setAsset(int index,
Asset vAsset)
throws IndexOutOfBoundsException
index - vAsset -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setAsset(Asset[] vAssetArray)
vAssetArray - public void setAsset(List<Asset> vAssetList)
vAssetList - the Vector to copy.public void setAssetCollection(List<Asset> assetList)
assetList - the Vector to set.public void setBuilding(String building)
building - the value of field 'building'.
public void setCategory(int index,
Category vCategory)
throws IndexOutOfBoundsException
index - vCategory -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setCategory(Category[] vCategoryArray)
vCategoryArray - public void setCategory(List<Category> vCategoryList)
vCategoryList - the Vector to copy.public void setCategoryCollection(List<Category> categoryList)
categoryList - the Vector to set.public void setCity(String city)
city - the value of field 'city'.public void setForeignId(String foreignId)
foreignId - the value of field 'foreignId'.
public void setInterface(int index,
Interface vInterface)
throws IndexOutOfBoundsException
index - vInterface -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setInterface(Interface[] vInterfaceArray)
vInterfaceArray - public void setInterface(List<Interface> vInterfaceList)
vInterfaceList - the Vector to copy.public void setInterfaceCollection(List<Interface> _interfaceList)
_interfaceList - the Vector to set.public void setNodeLabel(String nodeLabel)
nodeLabel - the value of field 'nodeLabel'.public void setParentForeignId(String parentForeignId)
parentForeignId - the value of field 'parentForeignId'.public void setParentNodeLabel(String parentNodeLabel)
parentNodeLabel - the value of field 'parentNodeLabel'.
public static Node 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 | |||||||||