|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.groups.Role
public class Role
Class Role.
| Constructor Summary | |
|---|---|
Role()
|
|
| Method Summary | |
|---|---|
void |
addSchedule(int index,
Schedule vSchedule)
|
void |
addSchedule(Schedule vSchedule)
|
Enumeration<Schedule> |
enumerateSchedule()
Method enumerateSchedule. |
String |
getDescription()
Returns the value of field 'description'. |
String |
getMembershipGroup()
Returns the value of field 'membershipGroup'. |
String |
getName()
Returns the value of field 'name'. |
Schedule[] |
getSchedule()
Method getSchedule.Returns the contents of the collection in an Array. |
Schedule |
getSchedule(int index)
Method getSchedule. |
List<Schedule> |
getScheduleCollection()
Method getScheduleCollection.Returns a reference to '_scheduleList'. |
int |
getScheduleCount()
Method getScheduleCount. |
String |
getSupervisor()
Returns the value of field 'supervisor'. |
boolean |
isValid()
Method isValid. |
Iterator<Schedule> |
iterateSchedule()
Method iterateSchedule. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllSchedule()
|
boolean |
removeSchedule(Schedule vSchedule)
Method removeSchedule. |
Schedule |
removeScheduleAt(int index)
Method removeScheduleAt. |
void |
setDescription(String description)
Sets the value of field 'description'. |
void |
setMembershipGroup(String membershipGroup)
Sets the value of field 'membershipGroup'. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setSchedule(int index,
Schedule vSchedule)
|
void |
setSchedule(List<Schedule> vScheduleList)
Sets the value of '_scheduleList' by copying the given Vector. |
void |
setSchedule(Schedule[] vScheduleArray)
|
void |
setScheduleCollection(List<Schedule> scheduleList)
Deprecated. |
void |
setSupervisor(String supervisor)
Sets the value of field 'supervisor'. |
static Role |
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 |
|---|
public Role()
| Method Detail |
|---|
public void addSchedule(Schedule vSchedule)
throws IndexOutOfBoundsException
vSchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addSchedule(int index,
Schedule vSchedule)
throws IndexOutOfBoundsException
index - vSchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Schedule> enumerateSchedule()
public String getDescription()
public String getMembershipGroup()
public String getName()
public Schedule getSchedule(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Schedule[] getSchedule()
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.
public List<Schedule> getScheduleCollection()
public int getScheduleCount()
public String getSupervisor()
public boolean isValid()
public Iterator<Schedule> iterateSchedule()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
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
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
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 marshalingpublic void removeAllSchedule()
public boolean removeSchedule(Schedule vSchedule)
vSchedule -
public Schedule removeScheduleAt(int index)
index -
public void setDescription(String description)
description - the value of field 'description'.public void setMembershipGroup(String membershipGroup)
membershipGroup - the value of field 'membershipGroup'.public void setName(String name)
name - the value of field 'name'.
public void setSchedule(int index,
Schedule vSchedule)
throws IndexOutOfBoundsException
index - vSchedule -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setSchedule(Schedule[] vScheduleArray)
vScheduleArray - public void setSchedule(List<Schedule> vScheduleList)
vScheduleList - the Vector to copy.public void setScheduleCollection(List<Schedule> scheduleList)
scheduleList - the Vector to set.public void setSupervisor(String supervisor)
supervisor - the value of field 'supervisor'.
public static Role unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
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
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||