|
|||||||||
| 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)
Method addNode |
void |
addNode(Node vNode)
Method addNode |
void |
clearNode()
Method clearNode |
java.util.Enumeration |
enumerateNode()
Method enumerateNode |
java.util.Date |
getDateStamp()
Returns the value of field 'dateStamp'. |
java.lang.String |
getForeignSource()
Returns the value of field 'foreignSource'. |
java.util.Date |
getLastImport()
Returns the value of field 'lastImport'. |
Node[] |
getNode()
Method getNode |
Node |
getNode(int index)
Method getNode |
java.util.ArrayList |
getNodeCollection()
Method getNodeCollection Returns a reference to 'node'. |
int |
getNodeCount()
Method getNodeCount |
boolean |
isValid()
Method isValid |
void |
marshal(org.xml.sax.ContentHandler handler)
Method marshal |
void |
marshal(java.io.Writer out)
Method marshal |
boolean |
removeNode(Node vNode)
Method removeNode |
void |
setDateStamp(java.util.Date dateStamp)
Sets the value of field 'dateStamp'. |
void |
setForeignSource(java.lang.String foreignSource)
Sets the value of field 'foreignSource'. |
void |
setLastImport(java.util.Date lastImport)
Sets the value of field 'lastImport'. |
void |
setNode(java.util.ArrayList nodeCollection)
Method setNode Sets the value of 'node' by copying the given ArrayList. |
void |
setNode(int index,
Node vNode)
Method setNode |
void |
setNode(Node[] nodeArray)
Method setNode |
void |
setNodeCollection(java.util.ArrayList nodeCollection)
Method setNodeCollection Sets the value of 'node' by setting it to the given ArrayList. |
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 |
|---|
public ModelImport()
| Method Detail |
|---|
public void addNode(Node vNode)
throws java.lang.IndexOutOfBoundsException
vNode -
java.lang.IndexOutOfBoundsException
public void addNode(int index,
Node vNode)
throws java.lang.IndexOutOfBoundsException
index - vNode -
java.lang.IndexOutOfBoundsExceptionpublic void clearNode()
public java.util.Enumeration enumerateNode()
public java.util.Date getDateStamp()
public java.lang.String getForeignSource()
public java.util.Date getLastImport()
public Node getNode(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Node[] getNode()
public java.util.ArrayList getNodeCollection()
public int getNodeCount()
public boolean isValid()
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic boolean removeNode(Node vNode)
vNode -
public void setDateStamp(java.util.Date dateStamp)
dateStamp - the value of field 'dateStamp'.public void setForeignSource(java.lang.String foreignSource)
foreignSource - the value of field 'foreignSource'.public void setLastImport(java.util.Date lastImport)
lastImport - the value of field 'lastImport'.
public void setNode(int index,
Node vNode)
throws java.lang.IndexOutOfBoundsException
index - vNode -
java.lang.IndexOutOfBoundsExceptionpublic void setNode(Node[] nodeArray)
nodeArray - public void setNode(java.util.ArrayList nodeCollection)
nodeCollection - the Vector to copy.public void setNodeCollection(java.util.ArrayList nodeCollection)
nodeCollection - the ArrayList to copy.
public static java.lang.Object unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||