public class Mbeans extends Object implements Serializable
Constructor and Description |
---|
Mbeans() |
Modifier and Type | Method and Description |
---|---|
void |
addMbean(int index,
Mbean vMbean) |
void |
addMbean(Mbean vMbean) |
Enumeration<Mbean> |
enumerateMbean()
Method enumerateMbean.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Mbean[] |
getMbean()
Method getMbean.Returns the contents of the collection in an
Array.
|
Mbean |
getMbean(int index)
Method getMbean.
|
List<Mbean> |
getMbeanCollection()
Method getMbeanCollection.Returns a reference to
'_mbeanList'.
|
int |
getMbeanCount()
Method getMbeanCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Deprecated.
|
Iterator<Mbean> |
iterateMbean()
Method iterateMbean.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllMbean() |
boolean |
removeMbean(Mbean vMbean)
Method removeMbean.
|
Mbean |
removeMbeanAt(int index)
Method removeMbeanAt.
|
void |
setMbean(int index,
Mbean vMbean) |
void |
setMbean(List<Mbean> vMbeanList)
Sets the value of '_mbeanList' by copying the given Vector.
|
void |
setMbean(Mbean[] vMbeanArray) |
void |
setMbeanCollection(List<Mbean> mbeanList)
Deprecated.
|
static Mbeans |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addMbean(Mbean vMbean) throws IndexOutOfBoundsException
vMbean
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addMbean(int index, Mbean vMbean) throws IndexOutOfBoundsException
index
- vMbean
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Mbean> enumerateMbean()
public boolean equals(Object obj)
public Mbean getMbean(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Mbean[] getMbean()
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.
public List<Mbean> getMbeanCollection()
public int getMbeanCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<Mbean> iterateMbean()
@Deprecated public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllMbean()
public boolean removeMbean(Mbean vMbean)
vMbean
- public Mbean removeMbeanAt(int index)
index
- public void setMbean(int index, Mbean vMbean) throws IndexOutOfBoundsException
index
- vMbean
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setMbean(Mbean[] vMbeanArray)
vMbeanArray
- public void setMbean(List<Mbean> vMbeanList)
vMbeanList
- the Vector to copy.public void setMbeanCollection(List<Mbean> mbeanList)
mbeanList
- the Vector to set.@Deprecated public static Mbeans unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All rights reserved.