org.sourceforge.mbeanmonitoring.report.castor
Class Stat

java.lang.Object
  extended by org.sourceforge.mbeanmonitoring.report.castor.Stat
All Implemented Interfaces:
java.io.Serializable

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

Class Stat.

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

Constructor Summary
Stat()
           
 
Method Summary
 void addMethodStat(int index, MethodStat vMethodStat)
           
 void addMethodStat(MethodStat vMethodStat)
           
 java.util.Enumeration enumerateMethodStat()
          Method enumerateMethodStat.
 MethodStat[] getMethodStat()
          Method getMethodStat.Returns the contents of the collection in an Array.
 MethodStat getMethodStat(int index)
          Method getMethodStat.
 int getMethodStatCount()
          Method getMethodStatCount.
 java.lang.String getName()
          Returns the value of field 'name'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllMethodStat()
           
 boolean removeMethodStat(MethodStat vMethodStat)
          Method removeMethodStat.
 MethodStat removeMethodStatAt(int index)
          Method removeMethodStatAt.
 void setMethodStat(int index, MethodStat vMethodStat)
           
 void setMethodStat(MethodStat[] vMethodStatArray)
           
 void setName(java.lang.String name)
          Sets the value of field 'name'.
static Stat unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stat

public Stat()
Method Detail

addMethodStat

public void addMethodStat(MethodStat vMethodStat)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
vMethodStat -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addMethodStat

public void addMethodStat(int index,
                          MethodStat vMethodStat)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vMethodStat -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateMethodStat

public java.util.Enumeration enumerateMethodStat()
Method enumerateMethodStat.

Returns:
an Enumeration over all org.sourceforge.mbeanmonitoring.report.castor.MethodStat elements

getMethodStat

public MethodStat getMethodStat(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getMethodStat.

Parameters:
index -
Returns:
the value of the org.sourceforge.mbeanmonitoring.report.castor.MethodStat at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getMethodStat

public MethodStat[] getMethodStat()
Method getMethodStat.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getMethodStatCount

public int getMethodStatCount()
Method getMethodStatCount.

Returns:
the size of this collection

getName

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

Returns:
the value of field 'Name'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

removeAllMethodStat

public void removeAllMethodStat()

removeMethodStat

public boolean removeMethodStat(MethodStat vMethodStat)
Method removeMethodStat.

Parameters:
vMethodStat -
Returns:
true if the object was removed from the collection.

removeMethodStatAt

public MethodStat removeMethodStatAt(int index)
Method removeMethodStatAt.

Parameters:
index -
Returns:
the element removed from the collection

setMethodStat

public void setMethodStat(int index,
                          MethodStat vMethodStat)
                   throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vMethodStat -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setMethodStat

public void setMethodStat(MethodStat[] vMethodStatArray)
Parameters:
vMethodStatArray -

setName

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

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

unmarshal

public static Stat unmarshal(java.io.Reader reader)
                      throws org.exolab.castor.xml.MarshalException,
                             org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.sourceforge.mbeanmonitoring.report.castor.Stat
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2003-2008. All Rights Reserved.