org.opennms.netmgt.config.groups
Class Group

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

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

Class Group.

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

Constructor Summary
Group()
           
 
Method Summary
 void addDutySchedule(int index, java.lang.String vDutySchedule)
          Method addDutySchedule
 void addDutySchedule(java.lang.String vDutySchedule)
          Method addDutySchedule
 void addUser(int index, java.lang.String vUser)
          Method addUser
 void addUser(java.lang.String vUser)
          Method addUser
 void clearDutySchedule()
          Method clearDutySchedule
 void clearUser()
          Method clearUser
 java.util.Enumeration enumerateDutySchedule()
          Method enumerateDutySchedule
 java.util.Enumeration enumerateUser()
          Method enumerateUser
 java.lang.String getComments()
          Returns the value of field 'comments'.
 java.lang.String[] getDutySchedule()
          Method getDutySchedule
 java.lang.String getDutySchedule(int index)
          Method getDutySchedule
 java.util.ArrayList getDutyScheduleCollection()
          Method getDutyScheduleCollection Returns a reference to 'dutySchedule'.
 int getDutyScheduleCount()
          Method getDutyScheduleCount
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String[] getUser()
          Method getUser
 java.lang.String getUser(int index)
          Method getUser
 java.util.ArrayList getUserCollection()
          Method getUserCollection Returns a reference to 'user'.
 int getUserCount()
          Method getUserCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeDutySchedule(java.lang.String vDutySchedule)
          Method removeDutySchedule
 boolean removeUser(java.lang.String vUser)
          Method removeUser
 void setComments(java.lang.String comments)
          Sets the value of field 'comments'.
 void setDutySchedule(java.util.ArrayList dutyScheduleCollection)
          Method setDutySchedule Sets the value of 'dutySchedule' by copying the given ArrayList.
 void setDutySchedule(int index, java.lang.String vDutySchedule)
          Method setDutySchedule
 void setDutySchedule(java.lang.String[] dutyScheduleArray)
          Method setDutySchedule
 void setDutyScheduleCollection(java.util.ArrayList dutyScheduleCollection)
          Method setDutyScheduleCollection Sets the value of 'dutySchedule' by setting it to the given ArrayList.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setUser(java.util.ArrayList userCollection)
          Method setUser Sets the value of 'user' by copying the given ArrayList.
 void setUser(int index, java.lang.String vUser)
          Method setUser
 void setUser(java.lang.String[] userArray)
          Method setUser
 void setUserCollection(java.util.ArrayList userCollection)
          Method setUserCollection Sets the value of 'user' 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

Group

public Group()
Method Detail

addDutySchedule

public void addDutySchedule(java.lang.String vDutySchedule)
                     throws java.lang.IndexOutOfBoundsException
Method addDutySchedule

Parameters:
vDutySchedule -
Throws:
java.lang.IndexOutOfBoundsException

addDutySchedule

public void addDutySchedule(int index,
                            java.lang.String vDutySchedule)
                     throws java.lang.IndexOutOfBoundsException
Method addDutySchedule

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

addUser

public void addUser(java.lang.String vUser)
             throws java.lang.IndexOutOfBoundsException
Method addUser

Parameters:
vUser -
Throws:
java.lang.IndexOutOfBoundsException

addUser

public void addUser(int index,
                    java.lang.String vUser)
             throws java.lang.IndexOutOfBoundsException
Method addUser

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

clearDutySchedule

public void clearDutySchedule()
Method clearDutySchedule


clearUser

public void clearUser()
Method clearUser


enumerateDutySchedule

public java.util.Enumeration enumerateDutySchedule()
Method enumerateDutySchedule

Returns:
Enumeration

enumerateUser

public java.util.Enumeration enumerateUser()
Method enumerateUser

Returns:
Enumeration

getComments

public java.lang.String getComments()
Returns the value of field 'comments'.

Returns:
String

getDutySchedule

public java.lang.String getDutySchedule(int index)
                                 throws java.lang.IndexOutOfBoundsException
Method getDutySchedule

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

getDutySchedule

public java.lang.String[] getDutySchedule()
Method getDutySchedule

Returns:
String

getDutyScheduleCollection

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

Returns:
ArrayList

getDutyScheduleCount

public int getDutyScheduleCount()
Method getDutyScheduleCount

Returns:
int

getName

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

Returns:
String

getUser

public java.lang.String getUser(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getUser

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

getUser

public java.lang.String[] getUser()
Method getUser

Returns:
String

getUserCollection

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

Returns:
ArrayList

getUserCount

public int getUserCount()
Method getUserCount

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

removeDutySchedule

public boolean removeDutySchedule(java.lang.String vDutySchedule)
Method removeDutySchedule

Parameters:
vDutySchedule -
Returns:
boolean

removeUser

public boolean removeUser(java.lang.String vUser)
Method removeUser

Parameters:
vUser -
Returns:
boolean

setComments

public void setComments(java.lang.String comments)
Sets the value of field 'comments'.

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

setDutySchedule

public void setDutySchedule(int index,
                            java.lang.String vDutySchedule)
                     throws java.lang.IndexOutOfBoundsException
Method setDutySchedule

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

setDutySchedule

public void setDutySchedule(java.lang.String[] dutyScheduleArray)
Method setDutySchedule

Parameters:
dutyScheduleArray -

setDutySchedule

public void setDutySchedule(java.util.ArrayList dutyScheduleCollection)
Method setDutySchedule Sets the value of 'dutySchedule' by copying the given ArrayList.

Parameters:
dutyScheduleCollection - the Vector to copy.

setDutyScheduleCollection

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

Parameters:
dutyScheduleCollection - 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'.

setUser

public void setUser(int index,
                    java.lang.String vUser)
             throws java.lang.IndexOutOfBoundsException
Method setUser

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

setUser

public void setUser(java.lang.String[] userArray)
Method setUser

Parameters:
userArray -

setUser

public void setUser(java.util.ArrayList userCollection)
Method setUser Sets the value of 'user' by copying the given ArrayList.

Parameters:
userCollection - the Vector to copy.

setUserCollection

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

Parameters:
userCollection - 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.