org.opennms.netmgt.config.groups
Class Role

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

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

Class Role.

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

Constructor Summary
Role()
           
 
Method Summary
 void addSchedule(int index, Schedule vSchedule)
          Method addSchedule
 void addSchedule(Schedule vSchedule)
          Method addSchedule
 void clearSchedule()
          Method clearSchedule
 java.util.Enumeration enumerateSchedule()
          Method enumerateSchedule
 java.lang.String getDescription()
          Returns the value of field 'description'.
 java.lang.String getMembershipGroup()
          Returns the value of field 'membershipGroup'.
 java.lang.String getName()
          Returns the value of field 'name'.
 Schedule[] getSchedule()
          Method getSchedule
 Schedule getSchedule(int index)
          Method getSchedule
 java.util.ArrayList getScheduleCollection()
          Method getScheduleCollection Returns a reference to 'schedule'.
 int getScheduleCount()
          Method getScheduleCount
 java.lang.String getSupervisor()
          Returns the value of field 'supervisor'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeSchedule(Schedule vSchedule)
          Method removeSchedule
 void setDescription(java.lang.String description)
          Sets the value of field 'description'.
 void setMembershipGroup(java.lang.String membershipGroup)
          Sets the value of field 'membershipGroup'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setSchedule(java.util.ArrayList scheduleCollection)
          Method setSchedule Sets the value of 'schedule' by copying the given ArrayList.
 void setSchedule(int index, Schedule vSchedule)
          Method setSchedule
 void setSchedule(Schedule[] scheduleArray)
          Method setSchedule
 void setScheduleCollection(java.util.ArrayList scheduleCollection)
          Method setScheduleCollection Sets the value of 'schedule' by setting it to the given ArrayList.
 void setSupervisor(java.lang.String supervisor)
          Sets the value of field 'supervisor'.
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

Role

public Role()
Method Detail

addSchedule

public void addSchedule(Schedule vSchedule)
                 throws java.lang.IndexOutOfBoundsException
Method addSchedule

Parameters:
vSchedule -
Throws:
java.lang.IndexOutOfBoundsException

addSchedule

public void addSchedule(int index,
                        Schedule vSchedule)
                 throws java.lang.IndexOutOfBoundsException
Method addSchedule

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

clearSchedule

public void clearSchedule()
Method clearSchedule


enumerateSchedule

public java.util.Enumeration enumerateSchedule()
Method enumerateSchedule

Returns:
Enumeration

getDescription

public java.lang.String getDescription()
Returns the value of field 'description'.

Returns:
String

getMembershipGroup

public java.lang.String getMembershipGroup()
Returns the value of field 'membershipGroup'.

Returns:
String

getName

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

Returns:
String

getSchedule

public Schedule getSchedule(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getSchedule

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

getSchedule

public Schedule[] getSchedule()
Method getSchedule

Returns:
Schedule

getScheduleCollection

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

Returns:
ArrayList

getScheduleCount

public int getScheduleCount()
Method getScheduleCount

Returns:
int

getSupervisor

public java.lang.String getSupervisor()
Returns the value of field 'supervisor'.

Returns:
String

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

removeSchedule

public boolean removeSchedule(Schedule vSchedule)
Method removeSchedule

Parameters:
vSchedule -
Returns:
boolean

setDescription

public void setDescription(java.lang.String description)
Sets the value of field 'description'.

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

setMembershipGroup

public void setMembershipGroup(java.lang.String membershipGroup)
Sets the value of field 'membershipGroup'.

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

setName

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

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

setSchedule

public void setSchedule(int index,
                        Schedule vSchedule)
                 throws java.lang.IndexOutOfBoundsException
Method setSchedule

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

setSchedule

public void setSchedule(Schedule[] scheduleArray)
Method setSchedule

Parameters:
scheduleArray -

setSchedule

public void setSchedule(java.util.ArrayList scheduleCollection)
Method setSchedule Sets the value of 'schedule' by copying the given ArrayList.

Parameters:
scheduleCollection - the Vector to copy.

setScheduleCollection

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

Parameters:
scheduleCollection - the ArrayList to copy.

setSupervisor

public void setSupervisor(java.lang.String supervisor)
Sets the value of field 'supervisor'.

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

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.