org.opennms.netmgt.config.rws
Class RwsNbinventoryreport

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

public class RwsNbinventoryreport
extends Object
implements Serializable

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

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

Constructor Summary
RwsNbinventoryreport()
           
 
Method Summary
 void addGroupSet(GroupSet vGroupSet)
           
 void addGroupSet(int index, GroupSet vGroupSet)
           
 void deleteTotalGroups()
           
 Enumeration<GroupSet> enumerateGroupSet()
          Method enumerateGroupSet.
 String getDateInventory()
          Returns the value of field 'dateInventory'.
 GroupSet[] getGroupSet()
          Method getGroupSet.Returns the contents of the collection in an Array.
 GroupSet getGroupSet(int index)
          Method getGroupSet.
 List<GroupSet> getGroupSetCollection()
          Method getGroupSetCollection.Returns a reference to '_groupSetList'.
 int getGroupSetCount()
          Method getGroupSetCount.
 int getTotalGroups()
          Returns the value of field 'totalGroups'.
 boolean hasTotalGroups()
          Method hasTotalGroups.
 boolean isValid()
          Method isValid.
 Iterator<GroupSet> iterateGroupSet()
          Method iterateGroupSet.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllGroupSet()
           
 boolean removeGroupSet(GroupSet vGroupSet)
          Method removeGroupSet.
 GroupSet removeGroupSetAt(int index)
          Method removeGroupSetAt.
 void setDateInventory(String dateInventory)
          Sets the value of field 'dateInventory'.
 void setGroupSet(GroupSet[] vGroupSetArray)
           
 void setGroupSet(int index, GroupSet vGroupSet)
           
 void setGroupSet(List<GroupSet> vGroupSetList)
          Sets the value of '_groupSetList' by copying the given Vector.
 void setGroupSetCollection(List<GroupSet> groupSetList)
          Deprecated.  
 void setTotalGroups(int totalGroups)
          Sets the value of field 'totalGroups'.
static RwsNbinventoryreport 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

RwsNbinventoryreport

public RwsNbinventoryreport()
Method Detail

addGroupSet

public void addGroupSet(GroupSet vGroupSet)
                 throws IndexOutOfBoundsException
Parameters:
vGroupSet -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addGroupSet

public void addGroupSet(int index,
                        GroupSet vGroupSet)
                 throws IndexOutOfBoundsException
Parameters:
index -
vGroupSet -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

deleteTotalGroups

public void deleteTotalGroups()

enumerateGroupSet

public Enumeration<GroupSet> enumerateGroupSet()
Method enumerateGroupSet.

Returns:
an Enumeration over all possible elements of this collection

getDateInventory

public String getDateInventory()
Returns the value of field 'dateInventory'.

Returns:
the value of field 'DateInventory'.

getGroupSet

public GroupSet getGroupSet(int index)
                     throws IndexOutOfBoundsException
Method getGroupSet.

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

getGroupSet

public GroupSet[] getGroupSet()
Method getGroupSet.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

getGroupSetCollection

public List<GroupSet> getGroupSetCollection()
Method getGroupSetCollection.Returns a reference to '_groupSetList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getGroupSetCount

public int getGroupSetCount()
Method getGroupSetCount.

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

iterateGroupSet

public Iterator<GroupSet> iterateGroupSet()
Method iterateGroupSet.

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

removeAllGroupSet

public void removeAllGroupSet()

removeGroupSet

public boolean removeGroupSet(GroupSet vGroupSet)
Method removeGroupSet.

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

removeGroupSetAt

public GroupSet removeGroupSetAt(int index)
Method removeGroupSetAt.

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

setDateInventory

public void setDateInventory(String dateInventory)
Sets the value of field 'dateInventory'.

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

setGroupSet

public void setGroupSet(int index,
                        GroupSet vGroupSet)
                 throws IndexOutOfBoundsException
Parameters:
index -
vGroupSet -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setGroupSet

public void setGroupSet(GroupSet[] vGroupSetArray)
Parameters:
vGroupSetArray -

setGroupSet

public void setGroupSet(List<GroupSet> vGroupSetList)
Sets the value of '_groupSetList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
vGroupSetList - the Vector to copy.

setGroupSetCollection

public void setGroupSetCollection(List<GroupSet> groupSetList)
Deprecated. 

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

Parameters:
groupSetList - 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 RwsNbinventoryreport 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.RwsNbinventoryreport
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.