|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.service.Service
public class Service
Service to be launched by the manager.
| 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)
|
Enumeration<Attribute> |
enumerateAttribute()
Method enumerateAttribute. |
Enumeration<Invoke> |
enumerateInvoke()
Method enumerateInvoke. |
Attribute[] |
getAttribute()
Method getAttribute.Returns the contents of the collection in an Array. |
Attribute |
getAttribute(int index)
Method getAttribute. |
List<Attribute> |
getAttributeCollection()
Method getAttributeCollection.Returns a reference to '_attributeList'. |
int |
getAttributeCount()
Method getAttributeCount. |
String |
getClassName()
Returns the value of field 'className'. |
Invoke[] |
getInvoke()
Method getInvoke.Returns the contents of the collection in an Array. |
Invoke |
getInvoke(int index)
Method getInvoke. |
List<Invoke> |
getInvokeCollection()
Method getInvokeCollection.Returns a reference to '_invokeList'. |
int |
getInvokeCount()
Method getInvokeCount. |
String |
getName()
Returns the value of field 'name'. |
boolean |
isValid()
Method isValid. |
Iterator<Attribute> |
iterateAttribute()
Method iterateAttribute. |
Iterator<Invoke> |
iterateInvoke()
Method iterateInvoke. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllAttribute()
|
void |
removeAllInvoke()
|
boolean |
removeAttribute(Attribute vAttribute)
Method removeAttribute. |
Attribute |
removeAttributeAt(int index)
Method removeAttributeAt. |
boolean |
removeInvoke(Invoke vInvoke)
Method removeInvoke. |
Invoke |
removeInvokeAt(int index)
Method removeInvokeAt. |
void |
setAttribute(Attribute[] vAttributeArray)
|
void |
setAttribute(int index,
Attribute vAttribute)
|
void |
setAttribute(List<Attribute> vAttributeList)
Sets the value of '_attributeList' by copying the given Vector. |
void |
setAttributeCollection(List<Attribute> attributeList)
Deprecated. |
void |
setClassName(String className)
Sets the value of field 'className'. |
void |
setInvoke(int index,
Invoke vInvoke)
|
void |
setInvoke(Invoke[] vInvokeArray)
|
void |
setInvoke(List<Invoke> vInvokeList)
Sets the value of '_invokeList' by copying the given Vector. |
void |
setInvokeCollection(List<Invoke> invokeList)
Deprecated. |
void |
setName(String name)
Sets the value of field 'name'. |
static Service |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Service()
| Method Detail |
|---|
public void addAttribute(Attribute vAttribute)
throws IndexOutOfBoundsException
vAttribute -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addAttribute(int index,
Attribute vAttribute)
throws IndexOutOfBoundsException
index - vAttribute -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addInvoke(Invoke vInvoke)
throws IndexOutOfBoundsException
vInvoke -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addInvoke(int index,
Invoke vInvoke)
throws IndexOutOfBoundsException
index - vInvoke -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Attribute> enumerateAttribute()
public Enumeration<Invoke> enumerateInvoke()
public Attribute getAttribute(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Attribute[] getAttribute()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Attribute> getAttributeCollection()
public int getAttributeCount()
public String getClassName()
public Invoke getInvoke(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Invoke[] getInvoke()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Invoke> getInvokeCollection()
public int getInvokeCount()
public String getName()
public boolean isValid()
public Iterator<Attribute> iterateAttribute()
public Iterator<Invoke> iterateInvoke()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllAttribute()
public void removeAllInvoke()
public boolean removeAttribute(Attribute vAttribute)
vAttribute -
public Attribute removeAttributeAt(int index)
index -
public boolean removeInvoke(Invoke vInvoke)
vInvoke -
public Invoke removeInvokeAt(int index)
index -
public void setAttribute(int index,
Attribute vAttribute)
throws IndexOutOfBoundsException
index - vAttribute -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setAttribute(Attribute[] vAttributeArray)
vAttributeArray - public void setAttribute(List<Attribute> vAttributeList)
vAttributeList - the Vector to copy.public void setAttributeCollection(List<Attribute> attributeList)
attributeList - the Vector to set.public void setClassName(String className)
className - the value of field 'className'.
public void setInvoke(int index,
Invoke vInvoke)
throws IndexOutOfBoundsException
index - vInvoke -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setInvoke(Invoke[] vInvokeArray)
vInvokeArray - public void setInvoke(List<Invoke> vInvokeList)
vInvokeList - the Vector to copy.public void setInvokeCollection(List<Invoke> invokeList)
invokeList - the Vector to set.public void setName(String name)
name - the value of field 'name'.
public static Service unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||