org.opennms.netmgt.config.collectd
Class Mbeans

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

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

Class Mbeans.

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

Constructor Summary
Mbeans()
           
 
Method Summary
 void addMbean(int index, Mbean vMbean)
          Method addMbean
 void addMbean(Mbean vMbean)
          Method addMbean
 void clearMbean()
          Method clearMbean
 java.util.Enumeration enumerateMbean()
          Method enumerateMbean
 Mbean[] getMbean()
          Method getMbean
 Mbean getMbean(int index)
          Method getMbean
 java.util.ArrayList getMbeanCollection()
          Method getMbeanCollection Returns a reference to 'mbean'.
 int getMbeanCount()
          Method getMbeanCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeMbean(Mbean vMbean)
          Method removeMbean
 void setMbean(java.util.ArrayList mbeanCollection)
          Method setMbean Sets the value of 'mbean' by copying the given ArrayList.
 void setMbean(int index, Mbean vMbean)
          Method setMbean
 void setMbean(Mbean[] mbeanArray)
          Method setMbean
 void setMbeanCollection(java.util.ArrayList mbeanCollection)
          Method setMbeanCollection Sets the value of 'mbean' 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

Mbeans

public Mbeans()
Method Detail

addMbean

public void addMbean(Mbean vMbean)
              throws java.lang.IndexOutOfBoundsException
Method addMbean

Parameters:
vMbean -
Throws:
java.lang.IndexOutOfBoundsException

addMbean

public void addMbean(int index,
                     Mbean vMbean)
              throws java.lang.IndexOutOfBoundsException
Method addMbean

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

clearMbean

public void clearMbean()
Method clearMbean


enumerateMbean

public java.util.Enumeration enumerateMbean()
Method enumerateMbean

Returns:
Enumeration

getMbean

public Mbean getMbean(int index)
               throws java.lang.IndexOutOfBoundsException
Method getMbean

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

getMbean

public Mbean[] getMbean()
Method getMbean

Returns:
Mbean

getMbeanCollection

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

Returns:
ArrayList

getMbeanCount

public int getMbeanCount()
Method getMbeanCount

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

removeMbean

public boolean removeMbean(Mbean vMbean)
Method removeMbean

Parameters:
vMbean -
Returns:
boolean

setMbean

public void setMbean(int index,
                     Mbean vMbean)
              throws java.lang.IndexOutOfBoundsException
Method setMbean

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

setMbean

public void setMbean(Mbean[] mbeanArray)
Method setMbean

Parameters:
mbeanArray -

setMbean

public void setMbean(java.util.ArrayList mbeanCollection)
Method setMbean Sets the value of 'mbean' by copying the given ArrayList.

Parameters:
mbeanCollection - the Vector to copy.

setMbeanCollection

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

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