|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.modelimport.ModelImport
public class ModelImport
Use this configuration file as an import of nodes, interfaces, and services to OpenNMS by-passing several phases of discovery and capabilities polling.
| Constructor Summary | |
|---|---|
ModelImport()
|
|
| Method Summary | |
|---|---|
void |
addNode(int index,
Node vNode)
|
void |
addNode(Node vNode)
|
Enumeration<Node> |
enumerateNode()
Method enumerateNode. |
Date |
getDateStamp()
Returns the value of field 'dateStamp'. |
String |
getForeignSource()
Returns the value of field 'foreignSource'. |
Date |
getLastImport()
Returns the value of field 'lastImport'. |
Node[] |
getNode()
Method getNode.Returns the contents of the collection in an Array. |
Node |
getNode(int index)
Method getNode. |
List<Node> |
getNodeCollection()
Method getNodeCollection.Returns a reference to '_nodeList'. |
int |
getNodeCount()
Method getNodeCount. |
boolean |
isValid()
Method isValid. |
Iterator<Node> |
iterateNode()
Method iterateNode. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllNode()
|
boolean |
removeNode(Node vNode)
Method removeNode. |
Node |
removeNodeAt(int index)
Method removeNodeAt. |
void |
setDateStamp(Date dateStamp)
Sets the value of field 'dateStamp'. |
void |
setForeignSource(String foreignSource)
Sets the value of field 'foreignSource'. |
void |
setLastImport(Date lastImport)
Sets the value of field 'lastImport'. |
void |
setNode(int index,
Node vNode)
|
void |
setNode(List<Node> vNodeList)
Sets the value of '_nodeList' by copying the given Vector. |
void |
setNode(Node[] vNodeArray)
|
void |
setNodeCollection(List<Node> nodeList)
Deprecated. |
static ModelImport |
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 ModelImport()
| Method Detail |
|---|
public void addNode(Node vNode)
throws IndexOutOfBoundsException
vNode -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addNode(int index,
Node vNode)
throws IndexOutOfBoundsException
index - vNode -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Node> enumerateNode()
public Date getDateStamp()
public String getForeignSource()
public Date getLastImport()
public Node getNode(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Node[] getNode()
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<Node> getNodeCollection()
public int getNodeCount()
public boolean isValid()
public Iterator<Node> iterateNode()
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 removeAllNode()
public boolean removeNode(Node vNode)
vNode -
public Node removeNodeAt(int index)
index -
public void setDateStamp(Date dateStamp)
dateStamp - the value of field 'dateStamp'.public void setForeignSource(String foreignSource)
foreignSource - the value of field 'foreignSource'.public void setLastImport(Date lastImport)
lastImport - the value of field 'lastImport'.
public void setNode(int index,
Node vNode)
throws IndexOutOfBoundsException
index - vNode -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setNode(Node[] vNodeArray)
vNodeArray - public void setNode(List<Node> vNodeList)
vNodeList - the Vector to copy.public void setNodeCollection(List<Node> nodeList)
nodeList - the Vector to set.
public static ModelImport 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 | ||||||||