|
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.service.Service
Field Summary | |
private java.util.ArrayList |
_attributeList
|
private java.lang.String |
_className
|
private java.util.ArrayList |
_invokeList
|
private java.lang.String |
_name
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Service()
|
Method Summary | |
void |
addAttribute(Attribute vAttribute)
|
void |
addAttribute(int index,
Attribute vAttribute)
|
void |
addInvoke(int index,
Invoke vInvoke)
|
void |
addInvoke(Invoke vInvoke)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
clearAttribute()
|
void |
clearInvoke()
|
java.util.Enumeration |
enumerateAttribute()
|
java.util.Enumeration |
enumerateInvoke()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
Attribute[] |
getAttribute()
|
Attribute |
getAttribute(int index)
|
java.util.Collection |
getAttributeCollection()
|
int |
getAttributeCount()
|
java.lang.String |
getClassName()
Returns the value of field 'className'. |
Invoke[] |
getInvoke()
|
Invoke |
getInvoke(int index)
|
java.util.Collection |
getInvokeCollection()
|
int |
getInvokeCount()
|
java.lang.String |
getName()
Returns the value of field 'name'. |
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 |
removeAttribute(Attribute vAttribute)
|
boolean |
removeInvoke(Invoke vInvoke)
|
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
void |
setAttribute(Attribute[] attributeArray)
|
void |
setAttribute(int index,
Attribute vAttribute)
|
void |
setAttributeCollection(java.util.Collection vAttribute)
|
void |
setClassName(java.lang.String className)
Sets the value of field 'className'. |
void |
setInvoke(int index,
Invoke vInvoke)
|
void |
setInvoke(Invoke[] invokeArray)
|
void |
setInvokeCollection(java.util.Collection vInvoke)
|
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
static Service |
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 _name
private java.lang.String _className
private java.util.ArrayList _attributeList
private java.util.ArrayList _invokeList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Service()
Method Detail |
public void addAttribute(Attribute vAttribute) throws java.lang.IndexOutOfBoundsException
vAttribute
-
java.lang.IndexOutOfBoundsException
public void addAttribute(int index, Attribute vAttribute) throws java.lang.IndexOutOfBoundsException
index
- vAttribute
-
java.lang.IndexOutOfBoundsException
public void addInvoke(Invoke vInvoke) throws java.lang.IndexOutOfBoundsException
vInvoke
-
java.lang.IndexOutOfBoundsException
public void addInvoke(int index, Invoke vInvoke) throws java.lang.IndexOutOfBoundsException
index
- vInvoke
-
java.lang.IndexOutOfBoundsException
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void clearAttribute()
public void clearInvoke()
public java.util.Enumeration enumerateAttribute()
public java.util.Enumeration enumerateInvoke()
public boolean equals(java.lang.Object obj)
obj
- public Attribute getAttribute(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Attribute[] getAttribute()
public java.util.Collection getAttributeCollection()
public int getAttributeCount()
public java.lang.String getClassName()
public Invoke getInvoke(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public Invoke[] getInvoke()
public java.util.Collection getInvokeCollection()
public int getInvokeCount()
public java.lang.String getName()
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 removeAttribute(Attribute vAttribute)
vAttribute
- public boolean removeInvoke(Invoke vInvoke)
vInvoke
- public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public void setAttribute(int index, Attribute vAttribute) throws java.lang.IndexOutOfBoundsException
index
- vAttribute
-
java.lang.IndexOutOfBoundsException
public void setAttribute(Attribute[] attributeArray)
attributeArray
- public void setAttributeCollection(java.util.Collection vAttribute)
vAttribute
- public void setClassName(java.lang.String className)
className
- the value of field 'className'.public void setInvoke(int index, Invoke vInvoke) throws java.lang.IndexOutOfBoundsException
index
- vInvoke
-
java.lang.IndexOutOfBoundsException
public void setInvoke(Invoke[] invokeArray)
invokeArray
- public void setInvokeCollection(java.util.Collection vInvoke)
vInvoke
- public void setName(java.lang.String name)
name
- the value of field 'name'.public static Service 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 |