|
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.Definition
Field Summary | |
private boolean |
_has_port
keeps track of state for field: _port |
private boolean |
_has_retry
keeps track of state for field: _retry |
private boolean |
_has_timeout
keeps track of state for field: _timeout |
private int |
_port
|
private java.util.ArrayList |
_rangeList
|
private java.lang.String |
_readCommunity
|
private int |
_retry
|
private java.util.ArrayList |
_specificList
|
private int |
_timeout
|
private java.lang.String |
_version
|
private java.lang.String |
_writeCommunity
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Definition()
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
addRange(int index,
Range vRange)
|
void |
addRange(Range vRange)
|
void |
addSpecific(int index,
java.lang.String vSpecific)
|
void |
addSpecific(java.lang.String vSpecific)
|
void |
clearRange()
|
void |
clearSpecific()
|
void |
deletePort()
|
void |
deleteRetry()
|
void |
deleteTimeout()
|
java.util.Enumeration |
enumerateRange()
|
java.util.Enumeration |
enumerateSpecific()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
int |
getPort()
Returns the value of field 'port'. |
Range[] |
getRange()
|
Range |
getRange(int index)
|
java.util.Collection |
getRangeCollection()
|
int |
getRangeCount()
|
java.lang.String |
getReadCommunity()
Returns the value of field 'readCommunity'. |
int |
getRetry()
Returns the value of field 'retry'. |
java.lang.String[] |
getSpecific()
|
java.lang.String |
getSpecific(int index)
|
java.util.Collection |
getSpecificCollection()
|
int |
getSpecificCount()
|
int |
getTimeout()
Returns the value of field 'timeout'. |
java.lang.String |
getVersion()
Returns the value of field 'version'. |
java.lang.String |
getWriteCommunity()
Returns the value of field 'writeCommunity'. |
boolean |
hasPort()
|
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 |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
boolean |
removeRange(Range vRange)
|
boolean |
removeSpecific(java.lang.String vSpecific)
|
void |
setPort(int port)
Sets the value of field 'port'. |
void |
setRange(int index,
Range vRange)
|
void |
setRange(Range[] rangeArray)
|
void |
setRangeCollection(java.util.Collection vRange)
|
void |
setReadCommunity(java.lang.String readCommunity)
Sets the value of field 'readCommunity'. |
void |
setRetry(int retry)
Sets the value of field 'retry'. |
void |
setSpecific(int index,
java.lang.String vSpecific)
|
void |
setSpecific(java.lang.String[] specificArray)
|
void |
setSpecificCollection(java.util.Collection vSpecific)
|
void |
setTimeout(int timeout)
Sets the value of field 'timeout'. |
void |
setVersion(java.lang.String version)
Sets the value of field 'version'. |
void |
setWriteCommunity(java.lang.String writeCommunity)
Sets the value of field 'writeCommunity'. |
static Definition |
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 int _port
private boolean _has_port
private java.lang.String _version
private java.util.ArrayList _rangeList
private java.util.ArrayList _specificList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Definition()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void addRange(Range vRange) throws java.lang.IndexOutOfBoundsException
vRange
-
java.lang.IndexOutOfBoundsException
public void addRange(int index, Range vRange) throws java.lang.IndexOutOfBoundsException
index
- vRange
-
java.lang.IndexOutOfBoundsException
public void addSpecific(java.lang.String vSpecific) throws java.lang.IndexOutOfBoundsException
vSpecific
-
java.lang.IndexOutOfBoundsException
public void addSpecific(int index, java.lang.String vSpecific) throws java.lang.IndexOutOfBoundsException
index
- vSpecific
-
java.lang.IndexOutOfBoundsException
public void clearRange()
public void clearSpecific()
public void deletePort()
public void deleteRetry()
public void deleteTimeout()
public java.util.Enumeration enumerateRange()
public java.util.Enumeration enumerateSpecific()
public boolean equals(java.lang.Object obj)
obj
- public int getPort()
public Range getRange(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Range[] getRange()
public java.util.Collection getRangeCollection()
public int getRangeCount()
public java.lang.String getReadCommunity()
public int getRetry()
public java.lang.String getSpecific(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public java.lang.String[] getSpecific()
public java.util.Collection getSpecificCollection()
public int getSpecificCount()
public int getTimeout()
public java.lang.String getVersion()
public java.lang.String getWriteCommunity()
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.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 removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public boolean removeRange(Range vRange)
vRange
- public boolean removeSpecific(java.lang.String vSpecific)
vSpecific
- public void setPort(int port)
port
- the value of field 'port'.public void setRange(int index, Range vRange) throws java.lang.IndexOutOfBoundsException
index
- vRange
-
java.lang.IndexOutOfBoundsException
public void setRange(Range[] rangeArray)
rangeArray
- public void setRangeCollection(java.util.Collection vRange)
vRange
- 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 setSpecific(int index, java.lang.String vSpecific) throws java.lang.IndexOutOfBoundsException
index
- vSpecific
-
java.lang.IndexOutOfBoundsException
public void setSpecific(java.lang.String[] specificArray)
specificArray
- public void setSpecificCollection(java.util.Collection vSpecific)
vSpecific
- public void setTimeout(int timeout)
timeout
- the value of field 'timeout'.public void setVersion(java.lang.String version)
version
- the value of field 'version'.public void setWriteCommunity(java.lang.String writeCommunity)
writeCommunity
- the value of field 'writeCommunity'.public static Definition 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 |