|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.mbeanmonitoring.report.castor.List
public class List
Class List.
Constructor Summary | |
---|---|
List()
|
Method Summary | |
---|---|
void |
addElement(Element vElement)
|
void |
addElement(int index,
Element vElement)
|
java.util.Enumeration |
enumerateElement()
Method enumerateElement. |
Element[] |
getElement()
Method getElement.Returns the contents of the collection in an Array. |
Element |
getElement(int index)
Method getElement. |
int |
getElementCount()
Method getElementCount. |
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 |
removeAllElement()
|
boolean |
removeElement(Element vElement)
Method removeElement. |
Element |
removeElementAt(int index)
Method removeElementAt. |
void |
setElement(Element[] vElementArray)
|
void |
setElement(int index,
Element vElement)
|
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
static List |
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 |
---|
public List()
Method Detail |
---|
public void addElement(Element vElement) throws java.lang.IndexOutOfBoundsException
vElement
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addElement(int index, Element vElement) throws java.lang.IndexOutOfBoundsException
index
- vElement
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration enumerateElement()
public Element getElement(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Element[] getElement()
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 int getElementCount()
public java.lang.String getName()
public boolean isValid()
public void marshal(java.io.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 marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
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 marshalingpublic void removeAllElement()
public boolean removeElement(Element vElement)
vElement
-
public Element removeElementAt(int index)
index
-
public void setElement(int index, Element vElement) throws java.lang.IndexOutOfBoundsException
index
- vElement
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setElement(Element[] vElementArray)
vElementArray
- public void setName(java.lang.String name)
name
- the value of field 'name'.public static List unmarshal(java.io.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 marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |