org.opennms.netmgt.config.collectd
Class Mbean

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

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

Class Mbean.

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

Constructor Summary
Mbean()
           
 
Method Summary
 void addAttrib(Attrib vAttrib)
          Method addAttrib
 void addAttrib(int index, Attrib vAttrib)
          Method addAttrib
 void addIncludeMbean(int index, java.lang.String vIncludeMbean)
          Method addIncludeMbean
 void addIncludeMbean(java.lang.String vIncludeMbean)
          Method addIncludeMbean
 void clearAttrib()
          Method clearAttrib
 void clearIncludeMbean()
          Method clearIncludeMbean
 java.util.Enumeration enumerateAttrib()
          Method enumerateAttrib
 java.util.Enumeration enumerateIncludeMbean()
          Method enumerateIncludeMbean
 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
 java.lang.String getExclude()
          Returns the value of field 'exclude'.
 java.lang.String[] getIncludeMbean()
          Method getIncludeMbean
 java.lang.String getIncludeMbean(int index)
          Method getIncludeMbean
 java.util.ArrayList getIncludeMbeanCollection()
          Method getIncludeMbeanCollection Returns a reference to 'includeMbean'.
 int getIncludeMbeanCount()
          Method getIncludeMbeanCount
 java.lang.String getKeyAlias()
          Returns the value of field 'keyAlias'.
 java.lang.String getKeyfield()
          Returns the value of field 'keyfield'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getObjectname()
          Returns the value of field 'objectname'.
 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
 boolean removeIncludeMbean(java.lang.String vIncludeMbean)
          Method removeIncludeMbean
 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.
 void setExclude(java.lang.String exclude)
          Sets the value of field 'exclude'.
 void setIncludeMbean(java.util.ArrayList includeMbeanCollection)
          Method setIncludeMbean Sets the value of 'includeMbean' by copying the given ArrayList.
 void setIncludeMbean(int index, java.lang.String vIncludeMbean)
          Method setIncludeMbean
 void setIncludeMbean(java.lang.String[] includeMbeanArray)
          Method setIncludeMbean
 void setIncludeMbeanCollection(java.util.ArrayList includeMbeanCollection)
          Method setIncludeMbeanCollection Sets the value of 'includeMbean' by setting it to the given ArrayList.
 void setKeyAlias(java.lang.String keyAlias)
          Sets the value of field 'keyAlias'.
 void setKeyfield(java.lang.String keyfield)
          Sets the value of field 'keyfield'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setObjectname(java.lang.String objectname)
          Sets the value of field 'objectname'.
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

Mbean

public Mbean()
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

addIncludeMbean

public void addIncludeMbean(java.lang.String vIncludeMbean)
                     throws java.lang.IndexOutOfBoundsException
Method addIncludeMbean

Parameters:
vIncludeMbean -
Throws:
java.lang.IndexOutOfBoundsException

addIncludeMbean

public void addIncludeMbean(int index,
                            java.lang.String vIncludeMbean)
                     throws java.lang.IndexOutOfBoundsException
Method addIncludeMbean

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

clearAttrib

public void clearAttrib()
Method clearAttrib


clearIncludeMbean

public void clearIncludeMbean()
Method clearIncludeMbean


enumerateAttrib

public java.util.Enumeration enumerateAttrib()
Method enumerateAttrib

Returns:
Enumeration

enumerateIncludeMbean

public java.util.Enumeration enumerateIncludeMbean()
Method enumerateIncludeMbean

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

getExclude

public java.lang.String getExclude()
Returns the value of field 'exclude'.

Returns:
String

getIncludeMbean

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

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

getIncludeMbean

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

Returns:
String

getIncludeMbeanCollection

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

Returns:
ArrayList

getIncludeMbeanCount

public int getIncludeMbeanCount()
Method getIncludeMbeanCount

Returns:
int

getKeyAlias

public java.lang.String getKeyAlias()
Returns the value of field 'keyAlias'.

Returns:
String

getKeyfield

public java.lang.String getKeyfield()
Returns the value of field 'keyfield'.

Returns:
String

getName

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

Returns:
String

getObjectname

public java.lang.String getObjectname()
Returns the value of field 'objectname'.

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

removeAttrib

public boolean removeAttrib(Attrib vAttrib)
Method removeAttrib

Parameters:
vAttrib -
Returns:
boolean

removeIncludeMbean

public boolean removeIncludeMbean(java.lang.String vIncludeMbean)
Method removeIncludeMbean

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

setExclude

public void setExclude(java.lang.String exclude)
Sets the value of field 'exclude'.

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

setIncludeMbean

public void setIncludeMbean(int index,
                            java.lang.String vIncludeMbean)
                     throws java.lang.IndexOutOfBoundsException
Method setIncludeMbean

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

setIncludeMbean

public void setIncludeMbean(java.lang.String[] includeMbeanArray)
Method setIncludeMbean

Parameters:
includeMbeanArray -

setIncludeMbean

public void setIncludeMbean(java.util.ArrayList includeMbeanCollection)
Method setIncludeMbean Sets the value of 'includeMbean' by copying the given ArrayList.

Parameters:
includeMbeanCollection - the Vector to copy.

setIncludeMbeanCollection

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

Parameters:
includeMbeanCollection - the ArrayList to copy.

setKeyAlias

public void setKeyAlias(java.lang.String keyAlias)
Sets the value of field 'keyAlias'.

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

setKeyfield

public void setKeyfield(java.lang.String keyfield)
Sets the value of field 'keyfield'.

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

setName

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

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

setObjectname

public void setObjectname(java.lang.String objectname)
Sets the value of field 'objectname'.

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

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.