org.opennms.netmgt.config.attrsummary
Class Resource

java.lang.Object
  extended by org.opennms.netmgt.config.attrsummary.Resource
All Implemented Interfaces:
java.io.Serializable

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

Class Resource.

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

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

Resource

public Resource()
Method Detail

addAttribute

public void addAttribute(Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method addAttribute

Parameters:
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

addAttribute

public void addAttribute(int index,
                         Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method addAttribute

Parameters:
index -
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

addResource

public void addResource(Resource vResource)
                 throws java.lang.IndexOutOfBoundsException
Method addResource

Parameters:
vResource -
Throws:
java.lang.IndexOutOfBoundsException

addResource

public void addResource(int index,
                        Resource vResource)
                 throws java.lang.IndexOutOfBoundsException
Method addResource

Parameters:
index -
vResource -
Throws:
java.lang.IndexOutOfBoundsException

clearAttribute

public void clearAttribute()
Method clearAttribute


clearResource

public void clearResource()
Method clearResource


enumerateAttribute

public java.util.Enumeration enumerateAttribute()
Method enumerateAttribute

Returns:
Enumeration

enumerateResource

public java.util.Enumeration enumerateResource()
Method enumerateResource

Returns:
Enumeration

getAttribute

public Attribute getAttribute(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getAttribute

Parameters:
index -
Returns:
Attribute
Throws:
java.lang.IndexOutOfBoundsException

getAttribute

public Attribute[] getAttribute()
Method getAttribute

Returns:
Attribute

getAttributeCollection

public java.util.ArrayList getAttributeCollection()
Method getAttributeCollection Returns a reference to 'attribute'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getAttributeCount

public int getAttributeCount()
Method getAttributeCount

Returns:
int

getName

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

Returns:
String

getResource

public Resource getResource(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getResource

Parameters:
index -
Returns:
Resource
Throws:
java.lang.IndexOutOfBoundsException

getResource

public Resource[] getResource()
Method getResource

Returns:
Resource

getResourceCollection

public java.util.ArrayList getResourceCollection()
Method getResourceCollection Returns a reference to 'resource'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getResourceCount

public int getResourceCount()
Method getResourceCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAttribute

public boolean removeAttribute(Attribute vAttribute)
Method removeAttribute

Parameters:
vAttribute -
Returns:
boolean

removeResource

public boolean removeResource(Resource vResource)
Method removeResource

Parameters:
vResource -
Returns:
boolean

setAttribute

public void setAttribute(int index,
                         Attribute vAttribute)
                  throws java.lang.IndexOutOfBoundsException
Method setAttribute

Parameters:
index -
vAttribute -
Throws:
java.lang.IndexOutOfBoundsException

setAttribute

public void setAttribute(Attribute[] attributeArray)
Method setAttribute

Parameters:
attributeArray -

setAttribute

public void setAttribute(java.util.ArrayList attributeCollection)
Method setAttribute Sets the value of 'attribute' by copying the given ArrayList.

Parameters:
attributeCollection - the Vector to copy.

setAttributeCollection

public void setAttributeCollection(java.util.ArrayList attributeCollection)
Method setAttributeCollection Sets the value of 'attribute' by setting it to the given ArrayList. No type checking is performed.

Parameters:
attributeCollection - the ArrayList to copy.

setName

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

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

setResource

public void setResource(int index,
                        Resource vResource)
                 throws java.lang.IndexOutOfBoundsException
Method setResource

Parameters:
index -
vResource -
Throws:
java.lang.IndexOutOfBoundsException

setResource

public void setResource(Resource[] resourceArray)
Method setResource

Parameters:
resourceArray -

setResource

public void setResource(java.util.ArrayList resourceCollection)
Method setResource Sets the value of 'resource' by copying the given ArrayList.

Parameters:
resourceCollection - the Vector to copy.

setResourceCollection

public void setResourceCollection(java.util.ArrayList resourceCollection)
Method setResourceCollection Sets the value of 'resource' by setting it to the given ArrayList. No type checking is performed.

Parameters:
resourceCollection - the ArrayList to copy.

unmarshal

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

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.