org.opennms.netmgt.config.attrsummary
Class Summary

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

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

Class Summary.

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

Constructor Summary
Summary()
           
 
Method Summary
 void addResource(int index, Resource vResource)
          Method addResource
 void addResource(Resource vResource)
          Method addResource
 void clearResource()
          Method clearResource
 java.util.Enumeration enumerateResource()
          Method enumerateResource
 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 removeResource(Resource vResource)
          Method removeResource
 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

Summary

public Summary()
Method Detail

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

clearResource

public void clearResource()
Method clearResource


enumerateResource

public java.util.Enumeration enumerateResource()
Method enumerateResource

Returns:
Enumeration

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

removeResource

public boolean removeResource(Resource vResource)
Method removeResource

Parameters:
vResource -
Returns:
boolean

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.