org.opennms.netmgt.config.service
Class ServiceConfiguration

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

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

Top-level element for the service-configuration.xml configuration file.

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

Constructor Summary
ServiceConfiguration()
           
 
Method Summary
 void addService(int index, Service vService)
          Method addService
 void addService(Service vService)
          Method addService
 void clearService()
          Method clearService
 java.util.Enumeration enumerateService()
          Method enumerateService
 Service[] getService()
          Method getService
 Service getService(int index)
          Method getService
 java.util.ArrayList getServiceCollection()
          Method getServiceCollection Returns a reference to 'service'.
 int getServiceCount()
          Method getServiceCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeService(Service vService)
          Method removeService
 void setService(java.util.ArrayList serviceCollection)
          Method setService Sets the value of 'service' by copying the given ArrayList.
 void setService(int index, Service vService)
          Method setService
 void setService(Service[] serviceArray)
          Method setService
 void setServiceCollection(java.util.ArrayList serviceCollection)
          Method setServiceCollection Sets the value of 'service' by setting it to the given ArrayList.
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

ServiceConfiguration

public ServiceConfiguration()
Method Detail

addService

public void addService(Service vService)
                throws java.lang.IndexOutOfBoundsException
Method addService

Parameters:
vService -
Throws:
java.lang.IndexOutOfBoundsException

addService

public void addService(int index,
                       Service vService)
                throws java.lang.IndexOutOfBoundsException
Method addService

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

clearService

public void clearService()
Method clearService


enumerateService

public java.util.Enumeration enumerateService()
Method enumerateService

Returns:
Enumeration

getService

public Service getService(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getService

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

getService

public Service[] getService()
Method getService

Returns:
Service

getServiceCollection

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

Returns:
ArrayList

getServiceCount

public int getServiceCount()
Method getServiceCount

Returns:
int

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

removeService

public boolean removeService(Service vService)
Method removeService

Parameters:
vService -
Returns:
boolean

setService

public void setService(int index,
                       Service vService)
                throws java.lang.IndexOutOfBoundsException
Method setService

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

setService

public void setService(Service[] serviceArray)
Method setService

Parameters:
serviceArray -

setService

public void setService(java.util.ArrayList serviceCollection)
Method setService Sets the value of 'service' by copying the given ArrayList.

Parameters:
serviceCollection - the Vector to copy.

setServiceCollection

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

Parameters:
serviceCollection - the ArrayList to copy.

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.