org.opennms.netmgt.config.rws
Class RwsRancidlistreport

java.lang.Object
  extended by org.opennms.netmgt.config.rws.RwsRancidlistreport
All Implemented Interfaces:
Serializable

public class RwsRancidlistreport
extends Object
implements Serializable

Top-level element for the rws-rws-rancidlistreport.xml configuration file.

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

Constructor Summary
RwsRancidlistreport()
           
 
Method Summary
 void addGroupXSet(GroupXSet vGroupXSet)
           
 void addGroupXSet(int index, GroupXSet vGroupXSet)
           
 void deleteTotalGroups()
           
 Enumeration<GroupXSet> enumerateGroupXSet()
          Method enumerateGroupXSet.
 GroupXSet[] getGroupXSet()
          Method getGroupXSet.Returns the contents of the collection in an Array.
 GroupXSet getGroupXSet(int index)
          Method getGroupXSet.
 List<GroupXSet> getGroupXSetCollection()
          Method getGroupXSetCollection.Returns a reference to '_groupXSetList'.
 int getGroupXSetCount()
          Method getGroupXSetCount.
 int getTotalGroups()
          Returns the value of field 'totalGroups'.
 boolean hasTotalGroups()
          Method hasTotalGroups.
 boolean isValid()
          Method isValid.
 Iterator<GroupXSet> iterateGroupXSet()
          Method iterateGroupXSet.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllGroupXSet()
           
 boolean removeGroupXSet(GroupXSet vGroupXSet)
          Method removeGroupXSet.
 GroupXSet removeGroupXSetAt(int index)
          Method removeGroupXSetAt.
 void setGroupXSet(GroupXSet[] vGroupXSetArray)
           
 void setGroupXSet(int index, GroupXSet vGroupXSet)
           
 void setGroupXSet(List<GroupXSet> vGroupXSetList)
          Sets the value of '_groupXSetList' by copying the given Vector.
 void setGroupXSetCollection(List<GroupXSet> groupXSetList)
          Deprecated.  
 void setTotalGroups(int totalGroups)
          Sets the value of field 'totalGroups'.
static RwsRancidlistreport 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

RwsRancidlistreport

public RwsRancidlistreport()
Method Detail

addGroupXSet

public void addGroupXSet(GroupXSet vGroupXSet)
                  throws IndexOutOfBoundsException
Parameters:
vGroupXSet -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addGroupXSet

public void addGroupXSet(int index,
                         GroupXSet vGroupXSet)
                  throws IndexOutOfBoundsException
Parameters:
index -
vGroupXSet -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

deleteTotalGroups

public void deleteTotalGroups()

enumerateGroupXSet

public Enumeration<GroupXSet> enumerateGroupXSet()
Method enumerateGroupXSet.

Returns:
an Enumeration over all possible elements of this collection

getGroupXSet

public GroupXSet getGroupXSet(int index)
                       throws IndexOutOfBoundsException
Method getGroupXSet.

Parameters:
index -
Returns:
the value of the org.opennms.netmgt.config.rws.GroupXSet at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getGroupXSet

public GroupXSet[] getGroupXSet()
Method getGroupXSet.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getGroupXSetCollection

public List<GroupXSet> getGroupXSetCollection()
Method getGroupXSetCollection.Returns a reference to '_groupXSetList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getGroupXSetCount

public int getGroupXSetCount()
Method getGroupXSetCount.

Returns:
the size of this collection

getTotalGroups

public int getTotalGroups()
Returns the value of field 'totalGroups'.

Returns:
the value of field 'TotalGroups'.

hasTotalGroups

public boolean hasTotalGroups()
Method hasTotalGroups.

Returns:
true if at least one TotalGroups has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

iterateGroupXSet

public Iterator<GroupXSet> iterateGroupXSet()
Method iterateGroupXSet.

Returns:
an Iterator over all possible elements in this collection

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
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

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
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 marshaling

removeAllGroupXSet

public void removeAllGroupXSet()

removeGroupXSet

public boolean removeGroupXSet(GroupXSet vGroupXSet)
Method removeGroupXSet.

Parameters:
vGroupXSet -
Returns:
true if the object was removed from the collection.

removeGroupXSetAt

public GroupXSet removeGroupXSetAt(int index)
Method removeGroupXSetAt.

Parameters:
index -
Returns:
the element removed from the collection

setGroupXSet

public void setGroupXSet(int index,
                         GroupXSet vGroupXSet)
                  throws IndexOutOfBoundsException
Parameters:
index -
vGroupXSet -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setGroupXSet

public void setGroupXSet(GroupXSet[] vGroupXSetArray)
Parameters:
vGroupXSetArray -

setGroupXSet

public void setGroupXSet(List<GroupXSet> vGroupXSetList)
Sets the value of '_groupXSetList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
vGroupXSetList - the Vector to copy.

setGroupXSetCollection

public void setGroupXSetCollection(List<GroupXSet> groupXSetList)
Deprecated. 

Sets the value of '_groupXSetList' by setting it to the given Vector. No type checking is performed.

Parameters:
groupXSetList - the Vector to set.

setTotalGroups

public void setTotalGroups(int totalGroups)
Sets the value of field 'totalGroups'.

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

unmarshal

public static RwsRancidlistreport unmarshal(Reader reader)
                                     throws org.exolab.castor.xml.MarshalException,
                                            org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.rws.RwsRancidlistreport
Throws:
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

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2009. All Rights Reserved.