|
|||||||||
| 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)
Method addDefinition |
void |
addDefinition(int index,
Definition vDefinition)
Method addDefinition |
void |
clearDefinition()
Method clearDefinition |
void |
deletePort()
Method deletePort |
void |
deleteRetry()
Method deleteRetry |
void |
deleteTimeout()
Method deleteTimeout |
java.util.Enumeration |
enumerateDefinition()
Method enumerateDefinition |
Definition[] |
getDefinition()
Method getDefinition |
Definition |
getDefinition(int index)
Method getDefinition |
java.util.ArrayList |
getDefinitionCollection()
Method getDefinitionCollection Returns a reference to 'definition'. |
int |
getDefinitionCount()
Method getDefinitionCount |
java.lang.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 |
void |
marshal(org.xml.sax.ContentHandler handler)
Method marshal |
void |
marshal(java.io.Writer out)
Method marshal |
boolean |
removeDefinition(Definition vDefinition)
Method removeDefinition |
void |
setDefinition(java.util.ArrayList definitionCollection)
Method setDefinition Sets the value of 'definition' by copying the given ArrayList. |
void |
setDefinition(Definition[] definitionArray)
Method setDefinition |
void |
setDefinition(int index,
Definition vDefinition)
Method setDefinition |
void |
setDefinitionCollection(java.util.ArrayList definitionCollection)
Method setDefinitionCollection Sets the value of 'definition' by setting it to the given ArrayList. |
void |
setPassword(java.lang.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 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 NsclientConfig()
| Method Detail |
|---|
public void addDefinition(Definition vDefinition)
throws java.lang.IndexOutOfBoundsException
vDefinition -
java.lang.IndexOutOfBoundsException
public void addDefinition(int index,
Definition vDefinition)
throws java.lang.IndexOutOfBoundsException
index - vDefinition -
java.lang.IndexOutOfBoundsExceptionpublic void clearDefinition()
public void deletePort()
public void deleteRetry()
public void deleteTimeout()
public java.util.Enumeration enumerateDefinition()
public Definition getDefinition(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Definition[] getDefinition()
public java.util.ArrayList getDefinitionCollection()
public int getDefinitionCount()
public java.lang.String getPassword()
public int getPort()
public int getRetry()
public int getTimeout()
public boolean hasPort()
public boolean hasRetry()
public boolean hasTimeout()
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 removeDefinition(Definition vDefinition)
vDefinition -
public void setDefinition(int index,
Definition vDefinition)
throws java.lang.IndexOutOfBoundsException
index - vDefinition -
java.lang.IndexOutOfBoundsExceptionpublic void setDefinition(Definition[] definitionArray)
definitionArray - public void setDefinition(java.util.ArrayList definitionCollection)
definitionCollection - the Vector to copy.public void setDefinitionCollection(java.util.ArrayList definitionCollection)
definitionCollection - the ArrayList to copy.public void setPassword(java.lang.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 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 | ||||||||