org.opennms.netmgt.xml.rtc
Class Category

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

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

A category

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

Constructor Summary
Category()
           
 
Method Summary
 void addNode(int index, Node vNode)
          Method addNode
 void addNode(Node vNode)
          Method addNode
 void clearNode()
          Method clearNode
 void deleteCatvalue()
          Method deleteCatvalue
 java.util.Enumeration enumerateNode()
          Method enumerateNode
 java.lang.String getCatlabel()
          Returns the value of field 'catlabel'.
 double getCatvalue()
          Returns the value of field 'catvalue'.
 Node[] getNode()
          Method getNode
 Node getNode(int index)
          Method getNode
 java.util.ArrayList getNodeCollection()
          Method getNodeCollection Returns a reference to 'node'.
 int getNodeCount()
          Method getNodeCount
 boolean hasCatvalue()
          Method hasCatvalue
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeNode(Node vNode)
          Method removeNode
 void setCatlabel(java.lang.String catlabel)
          Sets the value of field 'catlabel'.
 void setCatvalue(double catvalue)
          Sets the value of field 'catvalue'.
 void setNode(java.util.ArrayList nodeCollection)
          Method setNode Sets the value of 'node' by copying the given ArrayList.
 void setNode(int index, Node vNode)
          Method setNode
 void setNode(Node[] nodeArray)
          Method setNode
 void setNodeCollection(java.util.ArrayList nodeCollection)
          Method setNodeCollection Sets the value of 'node' 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

Category

public Category()
Method Detail

addNode

public void addNode(Node vNode)
             throws java.lang.IndexOutOfBoundsException
Method addNode

Parameters:
vNode -
Throws:
java.lang.IndexOutOfBoundsException

addNode

public void addNode(int index,
                    Node vNode)
             throws java.lang.IndexOutOfBoundsException
Method addNode

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

clearNode

public void clearNode()
Method clearNode


deleteCatvalue

public void deleteCatvalue()
Method deleteCatvalue


enumerateNode

public java.util.Enumeration enumerateNode()
Method enumerateNode

Returns:
Enumeration

getCatlabel

public java.lang.String getCatlabel()
Returns the value of field 'catlabel'. The field 'catlabel' has the following description: The category label

Returns:
String

getCatvalue

public double getCatvalue()
Returns the value of field 'catvalue'. The field 'catvalue' has the following description: The category availability value

Returns:
double

getNode

public Node getNode(int index)
             throws java.lang.IndexOutOfBoundsException
Method getNode

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

getNode

public Node[] getNode()
Method getNode

Returns:
Node

getNodeCollection

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

Returns:
ArrayList

getNodeCount

public int getNodeCount()
Method getNodeCount

Returns:
int

hasCatvalue

public boolean hasCatvalue()
Method hasCatvalue

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

removeNode

public boolean removeNode(Node vNode)
Method removeNode

Parameters:
vNode -
Returns:
boolean

setCatlabel

public void setCatlabel(java.lang.String catlabel)
Sets the value of field 'catlabel'. The field 'catlabel' has the following description: The category label

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

setCatvalue

public void setCatvalue(double catvalue)
Sets the value of field 'catvalue'. The field 'catvalue' has the following description: The category availability value

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

setNode

public void setNode(int index,
                    Node vNode)
             throws java.lang.IndexOutOfBoundsException
Method setNode

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

setNode

public void setNode(Node[] nodeArray)
Method setNode

Parameters:
nodeArray -

setNode

public void setNode(java.util.ArrayList nodeCollection)
Method setNode Sets the value of 'node' by copying the given ArrayList.

Parameters:
nodeCollection - the Vector to copy.

setNodeCollection

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

Parameters:
nodeCollection - 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.