org.opennms.netmgt.config.views
Class Category

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

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

Class Category.

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

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

Category

public Category()
Method Detail

addService

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

Parameters:
vService -
Throws:
java.lang.IndexOutOfBoundsException

addService

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

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

clearService

public void clearService()
Method clearService


deleteNormal

public void deleteNormal()
Method deleteNormal


deleteWarning

public void deleteWarning()
Method deleteWarning


enumerateService

public java.util.Enumeration enumerateService()
Method enumerateService

Returns:
Enumeration

getCategoryComment

public java.lang.String getCategoryComment()
Returns the value of field 'categoryComment'.

Returns:
String

getLabel

public java.lang.String getLabel()
Returns the value of field 'label'.

Returns:
String

getNormal

public double getNormal()
Returns the value of field 'normal'.

Returns:
double

getRule

public java.lang.String getRule()
Returns the value of field 'rule'.

Returns:
String

getService

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

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

getService

public java.lang.String[] getService()
Method getService

Returns:
String

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

getWarning

public double getWarning()
Returns the value of field 'warning'.

Returns:
double

hasNormal

public boolean hasNormal()
Method hasNormal

Returns:
boolean

hasWarning

public boolean hasWarning()
Method hasWarning

Returns:
boolean

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(java.lang.String vService)
Method removeService

Parameters:
vService -
Returns:
boolean

setCategoryComment

public void setCategoryComment(java.lang.String categoryComment)
Sets the value of field 'categoryComment'.

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

setLabel

public void setLabel(java.lang.String label)
Sets the value of field 'label'.

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

setNormal

public void setNormal(double normal)
Sets the value of field 'normal'.

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

setRule

public void setRule(java.lang.String rule)
Sets the value of field 'rule'.

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

setService

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

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

setService

public void setService(java.lang.String[] 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.

setWarning

public void setWarning(double warning)
Sets the value of field 'warning'.

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

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.