org.opennms.netmgt.config.datacollection
Class Attributes

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

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

Class Attributes.

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

Constructor Summary
Attributes()
           
 
Method Summary
 void addAttrib(Attrib vAttrib)
          Method addAttrib
 void addAttrib(int index, Attrib vAttrib)
          Method addAttrib
 void clearAttrib()
          Method clearAttrib
 java.util.Enumeration enumerateAttrib()
          Method enumerateAttrib
 Attrib[] getAttrib()
          Method getAttrib
 Attrib getAttrib(int index)
          Method getAttrib
 java.util.ArrayList getAttribCollection()
          Method getAttribCollection Returns a reference to 'attrib'.
 int getAttribCount()
          Method getAttribCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeAttrib(Attrib vAttrib)
          Method removeAttrib
 void setAttrib(java.util.ArrayList attribCollection)
          Method setAttrib Sets the value of 'attrib' by copying the given ArrayList.
 void setAttrib(Attrib[] attribArray)
          Method setAttrib
 void setAttrib(int index, Attrib vAttrib)
          Method setAttrib
 void setAttribCollection(java.util.ArrayList attribCollection)
          Method setAttribCollection Sets the value of 'attrib' 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

Attributes

public Attributes()
Method Detail

addAttrib

public void addAttrib(Attrib vAttrib)
               throws java.lang.IndexOutOfBoundsException
Method addAttrib

Parameters:
vAttrib -
Throws:
java.lang.IndexOutOfBoundsException

addAttrib

public void addAttrib(int index,
                      Attrib vAttrib)
               throws java.lang.IndexOutOfBoundsException
Method addAttrib

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

clearAttrib

public void clearAttrib()
Method clearAttrib


enumerateAttrib

public java.util.Enumeration enumerateAttrib()
Method enumerateAttrib

Returns:
Enumeration

getAttrib

public Attrib getAttrib(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getAttrib

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

getAttrib

public Attrib[] getAttrib()
Method getAttrib

Returns:
Attrib

getAttribCollection

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

Returns:
ArrayList

getAttribCount

public int getAttribCount()
Method getAttribCount

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

removeAttrib

public boolean removeAttrib(Attrib vAttrib)
Method removeAttrib

Parameters:
vAttrib -
Returns:
boolean

setAttrib

public void setAttrib(int index,
                      Attrib vAttrib)
               throws java.lang.IndexOutOfBoundsException
Method setAttrib

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

setAttrib

public void setAttrib(Attrib[] attribArray)
Method setAttrib

Parameters:
attribArray -

setAttrib

public void setAttrib(java.util.ArrayList attribCollection)
Method setAttrib Sets the value of 'attrib' by copying the given ArrayList.

Parameters:
attribCollection - the Vector to copy.

setAttribCollection

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

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