org.opennms.netmgt.config.modelimport
Class Node

java.lang.Object
  extended by org.opennms.netmgt.config.modelimport.Node
All Implemented Interfaces:
java.io.Serializable

public class Node
extends java.lang.Object
implements java.io.Serializable

A node in OpenNMS is a network entity that is used to contain network interfaces and those interface's services.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Node()
           
 
Method Summary
 void addCategory(Category vCategory)
          Method addCategory
 void addCategory(int index, Category vCategory)
          Method addCategory
 void addInterface(Interface vInterface)
          Method addInterface
 void addInterface(int index, Interface vInterface)
          Method addInterface
 void clearCategory()
          Method clearCategory
 void clearInterface()
          Method clearInterface
 java.util.Enumeration enumerateCategory()
          Method enumerateCategory
 java.util.Enumeration enumerateInterface()
          Method enumerateInterface
 java.lang.String getBuilding()
          Returns the value of field 'building'.
 Category[] getCategory()
          Method getCategory
 Category getCategory(int index)
          Method getCategory
 java.util.ArrayList getCategoryCollection()
          Method getCategoryCollection Returns a reference to 'category'.
 int getCategoryCount()
          Method getCategoryCount
 java.lang.String getCity()
          Returns the value of field 'city'.
 java.lang.String getForeignId()
          Returns the value of field 'foreignId'.
 Interface[] getInterface()
          Method getInterface
 Interface getInterface(int index)
          Method getInterface
 java.util.ArrayList getInterfaceCollection()
          Method getInterfaceCollection Returns a reference to '_interface'.
 int getInterfaceCount()
          Method getInterfaceCount
 java.lang.String getNodeLabel()
          Returns the value of field 'nodeLabel'.
 java.lang.String getParentForeignId()
          Returns the value of field 'parentForeignId'.
 java.lang.String getParentNodeLabel()
          Returns the value of field 'parentNodeLabel'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCategory(Category vCategory)
          Method removeCategory
 boolean removeInterface(Interface vInterface)
          Method removeInterface
 void setBuilding(java.lang.String building)
          Sets the value of field 'building'.
 void setCategory(java.util.ArrayList categoryCollection)
          Method setCategory Sets the value of 'category' by copying the given ArrayList.
 void setCategory(Category[] categoryArray)
          Method setCategory
 void setCategory(int index, Category vCategory)
          Method setCategory
 void setCategoryCollection(java.util.ArrayList categoryCollection)
          Method setCategoryCollection Sets the value of 'category' by setting it to the given ArrayList.
 void setCity(java.lang.String city)
          Sets the value of field 'city'.
 void setForeignId(java.lang.String foreignId)
          Sets the value of field 'foreignId'.
 void setInterface(java.util.ArrayList _interfaceCollection)
          Method setInterface Sets the value of '_interface' by copying the given ArrayList.
 void setInterface(Interface[] _interfaceArray)
          Method setInterface
 void setInterface(int index, Interface vInterface)
          Method setInterface
 void setInterfaceCollection(java.util.ArrayList _interfaceCollection)
          Method setInterfaceCollection Sets the value of '_interface' by setting it to the given ArrayList.
 void setNodeLabel(java.lang.String nodeLabel)
          Sets the value of field 'nodeLabel'.
 void setParentForeignId(java.lang.String parentForeignId)
          Sets the value of field 'parentForeignId'.
 void setParentNodeLabel(java.lang.String parentNodeLabel)
          Sets the value of field 'parentNodeLabel'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()
Method Detail

addCategory

public void addCategory(Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method addCategory

Parameters:
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

addCategory

public void addCategory(int index,
                        Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method addCategory

Parameters:
index -
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

addInterface

public void addInterface(Interface vInterface)
                  throws java.lang.IndexOutOfBoundsException
Method addInterface

Parameters:
vInterface -
Throws:
java.lang.IndexOutOfBoundsException

addInterface

public void addInterface(int index,
                         Interface vInterface)
                  throws java.lang.IndexOutOfBoundsException
Method addInterface

Parameters:
index -
vInterface -
Throws:
java.lang.IndexOutOfBoundsException

clearCategory

public void clearCategory()
Method clearCategory


clearInterface

public void clearInterface()
Method clearInterface


enumerateCategory

public java.util.Enumeration enumerateCategory()
Method enumerateCategory

Returns:
Enumeration

enumerateInterface

public java.util.Enumeration enumerateInterface()
Method enumerateInterface

Returns:
Enumeration

getBuilding

public java.lang.String getBuilding()
Returns the value of field 'building'. The field 'building' has the following description: This optional attribute can be used to persist an asset value to the building column in the OpenNMS DB.

Returns:
String

getCategory

public Category getCategory(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getCategory

Parameters:
index -
Returns:
Category
Throws:
java.lang.IndexOutOfBoundsException

getCategory

public Category[] getCategory()
Method getCategory

Returns:
Category

getCategoryCollection

public java.util.ArrayList getCategoryCollection()
Method getCategoryCollection Returns a reference to 'category'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getCategoryCount

public int getCategoryCount()
Method getCategoryCount

Returns:
int

getCity

public java.lang.String getCity()
Returns the value of field 'city'. The field 'city' has the following description: This optional attribute can be used to persist an asset value to the building column in the OpenNMS DB.

Returns:
String

getForeignId

public java.lang.String getForeignId()
Returns the value of field 'foreignId'. The field 'foreignId' has the following description: This optional attribute can be used to facilitate integration by making the key from the integrating DB available adjacent to the OpenNMS key.

Returns:
String

getInterface

public Interface getInterface(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getInterface

Parameters:
index -
Returns:
Interface
Throws:
java.lang.IndexOutOfBoundsException

getInterface

public Interface[] getInterface()
Method getInterface

Returns:
Interface

getInterfaceCollection

public java.util.ArrayList getInterfaceCollection()
Method getInterfaceCollection Returns a reference to '_interface'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getInterfaceCount

public int getInterfaceCount()
Method getInterfaceCount

Returns:
int

getNodeLabel

public java.lang.String getNodeLabel()
Returns the value of field 'nodeLabel'.

Returns:
String

getParentForeignId

public java.lang.String getParentForeignId()
Returns the value of field 'parentForeignId'. The field 'parentForeignId' has the following description: This optional attribute can be used to facilitate building node relationships.

Returns:
String

getParentNodeLabel

public java.lang.String getParentNodeLabel()
Returns the value of field 'parentNodeLabel'. The field 'parentNodeLabel' has the following description: This optional attribute can be used to facilitate building node relationships.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeCategory

public boolean removeCategory(Category vCategory)
Method removeCategory

Parameters:
vCategory -
Returns:
boolean

removeInterface

public boolean removeInterface(Interface vInterface)
Method removeInterface

Parameters:
vInterface -
Returns:
boolean

setBuilding

public void setBuilding(java.lang.String building)
Sets the value of field 'building'. The field 'building' has the following description: This optional attribute can be used to persist an asset value to the building column in the OpenNMS DB.

Parameters:
building - the value of field 'building'.

setCategory

public void setCategory(int index,
                        Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method setCategory

Parameters:
index -
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

setCategory

public void setCategory(Category[] categoryArray)
Method setCategory

Parameters:
categoryArray -

setCategory

public void setCategory(java.util.ArrayList categoryCollection)
Method setCategory Sets the value of 'category' by copying the given ArrayList.

Parameters:
categoryCollection - the Vector to copy.

setCategoryCollection

public void setCategoryCollection(java.util.ArrayList categoryCollection)
Method setCategoryCollection Sets the value of 'category' by setting it to the given ArrayList. No type checking is performed.

Parameters:
categoryCollection - the ArrayList to copy.

setCity

public void setCity(java.lang.String city)
Sets the value of field 'city'. The field 'city' has the following description: This optional attribute can be used to persist an asset value to the building column in the OpenNMS DB.

Parameters:
city - the value of field 'city'.

setForeignId

public void setForeignId(java.lang.String foreignId)
Sets the value of field 'foreignId'. The field 'foreignId' has the following description: This optional attribute can be used to facilitate integration by making the key from the integrating DB available adjacent to the OpenNMS key.

Parameters:
foreignId - the value of field 'foreignId'.

setInterface

public void setInterface(int index,
                         Interface vInterface)
                  throws java.lang.IndexOutOfBoundsException
Method setInterface

Parameters:
index -
vInterface -
Throws:
java.lang.IndexOutOfBoundsException

setInterface

public void setInterface(Interface[] _interfaceArray)
Method setInterface

Parameters:
_interfaceArray -

setInterface

public void setInterface(java.util.ArrayList _interfaceCollection)
Method setInterface Sets the value of '_interface' by copying the given ArrayList.

Parameters:
_interfaceCollection - the Vector to copy.

setInterfaceCollection

public void setInterfaceCollection(java.util.ArrayList _interfaceCollection)
Method setInterfaceCollection Sets the value of '_interface' by setting it to the given ArrayList. No type checking is performed.

Parameters:
_interfaceCollection - the ArrayList to copy.

setNodeLabel

public void setNodeLabel(java.lang.String nodeLabel)
Sets the value of field 'nodeLabel'.

Parameters:
nodeLabel - the value of field 'nodeLabel'.

setParentForeignId

public void setParentForeignId(java.lang.String parentForeignId)
Sets the value of field 'parentForeignId'. The field 'parentForeignId' has the following description: This optional attribute can be used to facilitate building node relationships.

Parameters:
parentForeignId - the value of field 'parentForeignId'.

setParentNodeLabel

public void setParentNodeLabel(java.lang.String parentNodeLabel)
Sets the value of field 'parentNodeLabel'. The field 'parentNodeLabel' has the following description: This optional attribute can be used to facilitate building node relationships.

Parameters:
parentNodeLabel - the value of field 'parentNodeLabel'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.