|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.attrsummary.Summary
public class Summary
Class Summary.
| Constructor Summary | |
|---|---|
Summary()
|
|
| Method Summary | |
|---|---|
void |
addResource(int index,
Resource vResource)
|
void |
addResource(Resource vResource)
|
Enumeration<Resource> |
enumerateResource()
Method enumerateResource. |
Resource[] |
getResource()
Method getResource.Returns the contents of the collection in an Array. |
Resource |
getResource(int index)
Method getResource. |
List<Resource> |
getResourceCollection()
Method getResourceCollection.Returns a reference to '_resourceList'. |
int |
getResourceCount()
Method getResourceCount. |
boolean |
isValid()
Method isValid. |
Iterator<Resource> |
iterateResource()
Method iterateResource. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllResource()
|
boolean |
removeResource(Resource vResource)
Method removeResource. |
Resource |
removeResourceAt(int index)
Method removeResourceAt. |
void |
setResource(int index,
Resource vResource)
|
void |
setResource(List<Resource> vResourceList)
Sets the value of '_resourceList' by copying the given Vector. |
void |
setResource(Resource[] vResourceArray)
|
void |
setResourceCollection(List<Resource> resourceList)
Deprecated. |
static Summary |
unmarshal(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 Summary()
| Method Detail |
|---|
public void addResource(Resource vResource)
throws IndexOutOfBoundsException
vResource -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addResource(int index,
Resource vResource)
throws IndexOutOfBoundsException
index - vResource -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Resource> enumerateResource()
public Resource getResource(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Resource[] getResource()
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<Resource> getResourceCollection()
public int getResourceCount()
public boolean isValid()
public Iterator<Resource> iterateResource()
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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
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 removeAllResource()
public boolean removeResource(Resource vResource)
vResource -
public Resource removeResourceAt(int index)
index -
public void setResource(int index,
Resource vResource)
throws IndexOutOfBoundsException
index - vResource -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setResource(Resource[] vResourceArray)
vResourceArray - public void setResource(List<Resource> vResourceList)
vResourceList - the Vector to copy.public void setResourceCollection(List<Resource> resourceList)
resourceList - the Vector to set.
public static Summary 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public 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 | ||||||||