|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.nsclient.NsclientConfig
public class NsclientConfig
Top-level element for the nsclient-config.xml configuration file.
| Constructor Summary | |
|---|---|
NsclientConfig()
|
|
| Method Summary | |
|---|---|
void |
addDefinition(Definition vDefinition)
|
void |
addDefinition(int index,
Definition vDefinition)
|
void |
deletePort()
|
void |
deleteRetry()
|
void |
deleteTimeout()
|
Enumeration<Definition> |
enumerateDefinition()
Method enumerateDefinition. |
Definition[] |
getDefinition()
Method getDefinition.Returns the contents of the collection in an Array. |
Definition |
getDefinition(int index)
Method getDefinition. |
List<Definition> |
getDefinitionCollection()
Method getDefinitionCollection.Returns a reference to '_definitionList'. |
int |
getDefinitionCount()
Method getDefinitionCount. |
String |
getPassword()
Returns the value of field 'password'. |
int |
getPort()
Returns the value of field 'port'. |
int |
getRetry()
Returns the value of field 'retry'. |
int |
getTimeout()
Returns the value of field 'timeout'. |
boolean |
hasPort()
Method hasPort. |
boolean |
hasRetry()
Method hasRetry. |
boolean |
hasTimeout()
Method hasTimeout. |
boolean |
isValid()
Method isValid. |
Iterator<Definition> |
iterateDefinition()
Method iterateDefinition. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllDefinition()
|
boolean |
removeDefinition(Definition vDefinition)
Method removeDefinition. |
Definition |
removeDefinitionAt(int index)
Method removeDefinitionAt. |
void |
setDefinition(Definition[] vDefinitionArray)
|
void |
setDefinition(int index,
Definition vDefinition)
|
void |
setDefinition(List<Definition> vDefinitionList)
Sets the value of '_definitionList' by copying the given Vector. |
void |
setDefinitionCollection(List<Definition> definitionList)
Deprecated. |
void |
setPassword(String password)
Sets the value of field 'password'. |
void |
setPort(int port)
Sets the value of field 'port'. |
void |
setRetry(int retry)
Sets the value of field 'retry'. |
void |
setTimeout(int timeout)
Sets the value of field 'timeout'. |
static NsclientConfig |
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 NsclientConfig()
| Method Detail |
|---|
public void addDefinition(Definition vDefinition)
throws IndexOutOfBoundsException
vDefinition -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addDefinition(int index,
Definition vDefinition)
throws IndexOutOfBoundsException
index - vDefinition -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deletePort()
public void deleteRetry()
public void deleteTimeout()
public Enumeration<Definition> enumerateDefinition()
public Definition getDefinition(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Definition[] getDefinition()
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<Definition> getDefinitionCollection()
public int getDefinitionCount()
public String getPassword()
public int getPort()
public int getRetry()
public int getTimeout()
public boolean hasPort()
public boolean hasRetry()
public boolean hasTimeout()
public boolean isValid()
public Iterator<Definition> iterateDefinition()
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 removeAllDefinition()
public boolean removeDefinition(Definition vDefinition)
vDefinition -
public Definition removeDefinitionAt(int index)
index -
public void setDefinition(int index,
Definition vDefinition)
throws IndexOutOfBoundsException
index - vDefinition -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setDefinition(Definition[] vDefinitionArray)
vDefinitionArray - public void setDefinition(List<Definition> vDefinitionList)
vDefinitionList - the Vector to copy.public void setDefinitionCollection(List<Definition> definitionList)
definitionList - the Vector to set.public void setPassword(String password)
password - the value of field 'password'.public void setPort(int port)
port - the value of field 'port'.public void setRetry(int retry)
retry - the value of field 'retry'.public void setTimeout(int timeout)
timeout - the value of field 'timeout'.
public static NsclientConfig 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 | ||||||||