|
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.views.Category
Field Summary | |
private java.lang.String |
_categoryComment
|
private boolean |
_has_normal
keeps track of state for field: _normal |
private boolean |
_has_warning
keeps track of state for field: _warning |
private java.lang.String |
_label
|
private double |
_normal
|
private java.lang.String |
_rule
|
private java.util.ArrayList |
_serviceList
|
private double |
_warning
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Category()
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
addService(int index,
java.lang.String vService)
|
void |
addService(java.lang.String vService)
|
void |
clearService()
|
java.util.Enumeration |
enumerateService()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
java.lang.String |
getCategoryComment()
Returns the value of field 'categoryComment'. |
java.lang.String |
getLabel()
Returns the value of field 'label'. |
double |
getNormal()
Returns the value of field 'normal'. |
java.lang.String |
getRule()
Returns the value of field 'rule'. |
java.lang.String[] |
getService()
|
java.lang.String |
getService(int index)
|
java.util.Collection |
getServiceCollection()
|
int |
getServiceCount()
|
double |
getWarning()
Returns the value of field 'warning'. |
boolean |
hasNormal()
|
boolean |
hasWarning()
|
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 |
removeService(java.lang.String vService)
|
void |
setCategoryComment(java.lang.String categoryComment)
Sets the value of field 'categoryComment'. |
void |
setLabel(java.lang.String label)
Sets the value of field 'label'. |
void |
setNormal(double normal)
Sets the value of field 'normal'. |
void |
setRule(java.lang.String rule)
Sets the value of field 'rule'. |
void |
setService(int index,
java.lang.String vService)
|
void |
setService(java.lang.String[] serviceArray)
|
void |
setServiceCollection(java.util.Collection vService)
|
void |
setWarning(double warning)
Sets the value of field 'warning'. |
static Category |
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 java.lang.String _label
private java.lang.String _categoryComment
private double _normal
private boolean _has_normal
private double _warning
private boolean _has_warning
private java.util.ArrayList _serviceList
private java.lang.String _rule
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Category()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void addService(java.lang.String vService) throws java.lang.IndexOutOfBoundsException
vService
-
java.lang.IndexOutOfBoundsException
public void addService(int index, java.lang.String vService) throws java.lang.IndexOutOfBoundsException
index
- vService
-
java.lang.IndexOutOfBoundsException
public void clearService()
public java.util.Enumeration enumerateService()
public boolean equals(java.lang.Object obj)
obj
- public java.lang.String getCategoryComment()
public java.lang.String getLabel()
public double getNormal()
public java.lang.String getRule()
public java.lang.String getService(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public java.lang.String[] getService()
public java.util.Collection getServiceCollection()
public int getServiceCount()
public double getWarning()
public boolean hasNormal()
public boolean hasWarning()
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 removeService(java.lang.String vService)
vService
- public void setCategoryComment(java.lang.String categoryComment)
categoryComment
- the value of field 'categoryComment'.public void setLabel(java.lang.String label)
label
- the value of field 'label'.public void setNormal(double normal)
normal
- the value of field 'normal'.public void setRule(java.lang.String rule)
rule
- the value of field 'rule'.public void setService(int index, java.lang.String vService) throws java.lang.IndexOutOfBoundsException
index
- vService
-
java.lang.IndexOutOfBoundsException
public void setService(java.lang.String[] serviceArray)
serviceArray
- public void setServiceCollection(java.util.Collection vService)
vService
- public void setWarning(double warning)
warning
- the value of field 'warning'.public static Category 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 |