|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.attrsummary.Resource
public class Resource
Class Resource.
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(Attribute vAttribute)
Method addAttribute |
void |
addAttribute(int index,
Attribute vAttribute)
Method addAttribute |
void |
addResource(int index,
Resource vResource)
Method addResource |
void |
addResource(Resource vResource)
Method addResource |
void |
clearAttribute()
Method clearAttribute |
void |
clearResource()
Method clearResource |
java.util.Enumeration |
enumerateAttribute()
Method enumerateAttribute |
java.util.Enumeration |
enumerateResource()
Method enumerateResource |
Attribute[] |
getAttribute()
Method getAttribute |
Attribute |
getAttribute(int index)
Method getAttribute |
java.util.ArrayList |
getAttributeCollection()
Method getAttributeCollection Returns a reference to 'attribute'. |
int |
getAttributeCount()
Method getAttributeCount |
java.lang.String |
getName()
Returns the value of field 'name'. |
Resource[] |
getResource()
Method getResource |
Resource |
getResource(int index)
Method getResource |
java.util.ArrayList |
getResourceCollection()
Method getResourceCollection Returns a reference to 'resource'. |
int |
getResourceCount()
Method getResourceCount |
boolean |
isValid()
Method isValid |
void |
marshal(org.xml.sax.ContentHandler handler)
Method marshal |
void |
marshal(java.io.Writer out)
Method marshal |
boolean |
removeAttribute(Attribute vAttribute)
Method removeAttribute |
boolean |
removeResource(Resource vResource)
Method removeResource |
void |
setAttribute(java.util.ArrayList attributeCollection)
Method setAttribute Sets the value of 'attribute' by copying the given ArrayList. |
void |
setAttribute(Attribute[] attributeArray)
Method setAttribute |
void |
setAttribute(int index,
Attribute vAttribute)
Method setAttribute |
void |
setAttributeCollection(java.util.ArrayList attributeCollection)
Method setAttributeCollection Sets the value of 'attribute' by setting it to the given ArrayList. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setResource(java.util.ArrayList resourceCollection)
Method setResource Sets the value of 'resource' by copying the given ArrayList. |
void |
setResource(int index,
Resource vResource)
Method setResource |
void |
setResource(Resource[] resourceArray)
Method setResource |
void |
setResourceCollection(java.util.ArrayList resourceCollection)
Method setResourceCollection Sets the value of 'resource' 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 |
|---|
public Resource()
| Method Detail |
|---|
public void addAttribute(Attribute vAttribute)
throws java.lang.IndexOutOfBoundsException
vAttribute -
java.lang.IndexOutOfBoundsException
public void addAttribute(int index,
Attribute vAttribute)
throws java.lang.IndexOutOfBoundsException
index - vAttribute -
java.lang.IndexOutOfBoundsException
public void addResource(Resource vResource)
throws java.lang.IndexOutOfBoundsException
vResource -
java.lang.IndexOutOfBoundsException
public void addResource(int index,
Resource vResource)
throws java.lang.IndexOutOfBoundsException
index - vResource -
java.lang.IndexOutOfBoundsExceptionpublic void clearAttribute()
public void clearResource()
public java.util.Enumeration enumerateAttribute()
public java.util.Enumeration enumerateResource()
public Attribute getAttribute(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Attribute[] getAttribute()
public java.util.ArrayList getAttributeCollection()
public int getAttributeCount()
public java.lang.String getName()
public Resource getResource(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic Resource[] getResource()
public java.util.ArrayList getResourceCollection()
public int getResourceCount()
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
org.exolab.castor.xml.ValidationException
public 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
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic boolean removeAttribute(Attribute vAttribute)
vAttribute -
public boolean removeResource(Resource vResource)
vResource -
public void setAttribute(int index,
Attribute vAttribute)
throws java.lang.IndexOutOfBoundsException
index - vAttribute -
java.lang.IndexOutOfBoundsExceptionpublic void setAttribute(Attribute[] attributeArray)
attributeArray - public void setAttribute(java.util.ArrayList attributeCollection)
attributeCollection - the Vector to copy.public void setAttributeCollection(java.util.ArrayList attributeCollection)
attributeCollection - the ArrayList to copy.public void setName(java.lang.String name)
name - the value of field 'name'.
public void setResource(int index,
Resource vResource)
throws java.lang.IndexOutOfBoundsException
index - vResource -
java.lang.IndexOutOfBoundsExceptionpublic void setResource(Resource[] resourceArray)
resourceArray - public void setResource(java.util.ArrayList resourceCollection)
resourceCollection - the Vector to copy.public void setResourceCollection(java.util.ArrayList resourceCollection)
resourceCollection - the ArrayList to copy.
public static java.lang.Object unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||