|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.capsd.SnmpConfig
Field Summary | |
private java.util.ArrayList |
_definitionList
|
private boolean |
_has_retry
keeps track of state for field: _retry |
private boolean |
_has_timeout
keeps track of state for field: _timeout |
private java.lang.String |
_readCommunity
|
private int |
_retry
|
private int |
_timeout
|
private java.lang.String |
_writeCommunity
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
SnmpConfig()
|
Method Summary | |
void |
addDefinition(Definition vDefinition)
|
void |
addDefinition(int index,
Definition vDefinition)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
clearDefinition()
|
void |
deleteRetry()
|
void |
deleteTimeout()
|
java.util.Enumeration |
enumerateDefinition()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Definition[] |
getDefinition()
|
Definition |
getDefinition(int index)
|
java.util.Collection |
getDefinitionCollection()
|
int |
getDefinitionCount()
|
java.lang.String |
getReadCommunity()
Returns the value of field 'readCommunity'. |
int |
getRetry()
Returns the value of field 'retry'. |
int |
getTimeout()
Returns the value of field 'timeout'. |
java.lang.String |
getWriteCommunity()
Returns the value of field 'writeCommunity'. |
boolean |
hasRetry()
|
boolean |
hasTimeout()
|
boolean |
isValid()
|
void |
marshal(org.xml.sax.DocumentHandler handler)
|
void |
marshal(java.io.Writer out)
|
protected void |
notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes. |
boolean |
removeDefinition(Definition vDefinition)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
void |
setDefinition(Definition[] definitionArray)
|
void |
setDefinition(int index,
Definition vDefinition)
|
void |
setDefinitionCollection(java.util.Collection vDefinition)
|
void |
setReadCommunity(java.lang.String readCommunity)
Sets the value of field 'readCommunity'. |
void |
setRetry(int retry)
Sets the value of field 'retry'. |
void |
setTimeout(int timeout)
Sets the value of field 'timeout'. |
void |
setWriteCommunity(java.lang.String writeCommunity)
Sets the value of field 'writeCommunity'. |
static SnmpConfig |
unmarshal(java.io.Reader reader)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int _retry
private boolean _has_retry
private int _timeout
private boolean _has_timeout
private java.lang.String _readCommunity
private java.lang.String _writeCommunity
private java.util.ArrayList _definitionList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public SnmpConfig()
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.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearDefinition()
public void deleteRetry()
public void deleteTimeout()
public java.util.Enumeration enumerateDefinition()
public boolean equals(java.lang.Object obj)
obj
- public Definition getDefinition(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Definition[] getDefinition()
public java.util.Collection getDefinitionCollection()
public int getDefinitionCount()
public java.lang.String getReadCommunity()
public int getRetry()
public int getTimeout()
public java.lang.String getWriteCommunity()
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.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removeDefinition(Definition vDefinition)
vDefinition
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setDefinition(int index, Definition vDefinition) throws java.lang.IndexOutOfBoundsException
index
- vDefinition
-
java.lang.IndexOutOfBoundsException
public void setDefinition(Definition[] definitionArray)
definitionArray
- public void setDefinitionCollection(java.util.Collection vDefinition)
vDefinition
- public void setReadCommunity(java.lang.String readCommunity)
readCommunity
- the value of field 'readCommunity'.public void setRetry(int retry)
retry
- the value of field 'retry'.public void setTimeout(int timeout)
timeout
- the value of field 'timeout'.public void setWriteCommunity(java.lang.String writeCommunity)
writeCommunity
- the value of field 'writeCommunity'.public static SnmpConfig 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
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |