org.opennms.netmgt.config.service
Class Service

java.lang.Object
  extended by org.opennms.netmgt.config.service.Service
All Implemented Interfaces:
java.io.Serializable

public class Service
extends java.lang.Object
implements java.io.Serializable

Service to be launched by the manager.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Service()
           
 
Method Summary
 void addAttribute(Attribute vAttribute)
          Method addAttribute
 void addAttribute(int index, Attribute vAttribute)
          Method addAttribute
 void addInvoke(int index, Invoke vInvoke)
          Method addInvoke
 void addInvoke(Invoke vInvoke)
          Method addInvoke
 void clearAttribute()
          Method clearAttribute
 void clearInvoke()
          Method clearInvoke
 java.util.Enumeration enumerateAttribute()
          Method enumerateAttribute
 java.util.Enumeration enumerateInvoke()
          Method enumerateInvoke
 Attribute[] getAttribute()
          Method getAttribute
 Attribute getAttribute(int index)
          Method getAttribute
 java.util.ArrayList getAttributeCollection()
          Method getAttributeCollection Returns a reference to 'attribute'.
 int getAttributeCount()
          Method getAttributeCount
 java.lang.String getClassName()
          Returns the value of field 'className'.
 Invoke[] getInvoke()
          Method getInvoke
 Invoke getInvoke(int index)
          Method getInvoke
 java.util.ArrayList getInvokeCollection()
          Method getInvokeCollection Returns a reference to 'invoke'.
 int getInvokeCount()
          Method getInvokeCount
 java.lang.String getName()
          Returns the value of field 'name'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeAttribute(Attribute vAttribute)
          Method removeAttribute
 boolean removeInvoke(Invoke vInvoke)
          Method removeInvoke
 void setAttribute(java.util.ArrayList attributeCollection)
          Method setAttribute Sets the value of 'attribute' by copying the given ArrayList.
 void setAttribute(Attribute[] attributeArray)
          Method setAttribute
 void setAttribute(int index, Attribute vAttribute)
          Method setAttribute
 void setAttributeCollection(java.util.ArrayList attributeCollection)
          Method setAttributeCollection Sets the value of 'attribute' by setting it to the given ArrayList.
 void setClassName(java.lang.String className)
          Sets the value of field 'className'.
 void setInvoke(java.util.ArrayList invokeCollection)
          Method setInvoke Sets the value of 'invoke' by copying the given ArrayList.
 void setInvoke(int index, Invoke vInvoke)
          Method setInvoke
 void setInvoke(Invoke[] invokeArray)
          Method setInvoke
 void setInvokeCollection(java.util.ArrayList invokeCollection)
          Method setInvokeCollection Sets the value of 'invoke' by setting it to the given ArrayList.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

addAttribute

public void addAttribute(Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method addAttribute

Parameters:
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

addAttribute

public void addAttribute(int index,
                         Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method addAttribute

Parameters:
index -
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

addInvoke

public void addInvoke(Invoke vInvoke)
               throws java.lang.IndexOutOfBoundsException
Method addInvoke

Parameters:
vInvoke -
Throws:
java.lang.IndexOutOfBoundsException

addInvoke

public void addInvoke(int index,
                      Invoke vInvoke)
               throws java.lang.IndexOutOfBoundsException
Method addInvoke

Parameters:
index -
vInvoke -
Throws:
java.lang.IndexOutOfBoundsException

clearAttribute

public void clearAttribute()
Method clearAttribute


clearInvoke

public void clearInvoke()
Method clearInvoke


enumerateAttribute

public java.util.Enumeration enumerateAttribute()
Method enumerateAttribute

Returns:
Enumeration

enumerateInvoke

public java.util.Enumeration enumerateInvoke()
Method enumerateInvoke

Returns:
Enumeration

getAttribute

public Attribute getAttribute(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getAttribute

Parameters:
index -
Returns:
Attribute
Throws:
java.lang.IndexOutOfBoundsException

getAttribute

public Attribute[] getAttribute()
Method getAttribute

Returns:
Attribute

getAttributeCollection

public java.util.ArrayList getAttributeCollection()
Method getAttributeCollection Returns a reference to 'attribute'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getAttributeCount

public int getAttributeCount()
Method getAttributeCount

Returns:
int

getClassName

public java.lang.String getClassName()
Returns the value of field 'className'.

Returns:
String

getInvoke

public Invoke getInvoke(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getInvoke

Parameters:
index -
Returns:
Invoke
Throws:
java.lang.IndexOutOfBoundsException

getInvoke

public Invoke[] getInvoke()
Method getInvoke

Returns:
Invoke

getInvokeCollection

public java.util.ArrayList getInvokeCollection()
Method getInvokeCollection Returns a reference to 'invoke'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getInvokeCount

public int getInvokeCount()
Method getInvokeCount

Returns:
int

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAttribute

public boolean removeAttribute(Attribute vAttribute)
Method removeAttribute

Parameters:
vAttribute -
Returns:
boolean

removeInvoke

public boolean removeInvoke(Invoke vInvoke)
Method removeInvoke

Parameters:
vInvoke -
Returns:
boolean

setAttribute

public void setAttribute(int index,
                         Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method setAttribute

Parameters:
index -
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

setAttribute

public void setAttribute(Attribute[] attributeArray)
Method setAttribute

Parameters:
attributeArray -

setAttribute

public void setAttribute(java.util.ArrayList attributeCollection)
Method setAttribute Sets the value of 'attribute' by copying the given ArrayList.

Parameters:
attributeCollection - the Vector to copy.

setAttributeCollection

public void setAttributeCollection(java.util.ArrayList attributeCollection)
Method setAttributeCollection Sets the value of 'attribute' by setting it to the given ArrayList. No type checking is performed.

Parameters:
attributeCollection - the ArrayList to copy.

setClassName

public void setClassName(java.lang.String className)
Sets the value of field 'className'.

Parameters:
className - the value of field 'className'.

setInvoke

public void setInvoke(int index,
                      Invoke vInvoke)
               throws java.lang.IndexOutOfBoundsException
Method setInvoke

Parameters:
index -
vInvoke -
Throws:
java.lang.IndexOutOfBoundsException

setInvoke

public void setInvoke(Invoke[] invokeArray)
Method setInvoke

Parameters:
invokeArray -

setInvoke

public void setInvoke(java.util.ArrayList invokeCollection)
Method setInvoke Sets the value of 'invoke' by copying the given ArrayList.

Parameters:
invokeCollection - the Vector to copy.

setInvokeCollection

public void setInvokeCollection(java.util.ArrayList invokeCollection)
Method setInvokeCollection Sets the value of 'invoke' by setting it to the given ArrayList. No type checking is performed.

Parameters:
invokeCollection - the ArrayList to copy.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.