org.opennms.netmgt.config.groups
Class Roles

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

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

Class Roles.

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

Constructor Summary
Roles()
           
 
Method Summary
 void addRole(int index, Role vRole)
          Method addRole
 void addRole(Role vRole)
          Method addRole
 void clearRole()
          Method clearRole
 java.util.Enumeration enumerateRole()
          Method enumerateRole
 Role[] getRole()
          Method getRole
 Role getRole(int index)
          Method getRole
 java.util.ArrayList getRoleCollection()
          Method getRoleCollection Returns a reference to 'role'.
 int getRoleCount()
          Method getRoleCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeRole(Role vRole)
          Method removeRole
 void setRole(java.util.ArrayList roleCollection)
          Method setRole Sets the value of 'role' by copying the given ArrayList.
 void setRole(int index, Role vRole)
          Method setRole
 void setRole(Role[] roleArray)
          Method setRole
 void setRoleCollection(java.util.ArrayList roleCollection)
          Method setRoleCollection Sets the value of 'role' 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

Roles

public Roles()
Method Detail

addRole

public void addRole(Role vRole)
             throws java.lang.IndexOutOfBoundsException
Method addRole

Parameters:
vRole -
Throws:
java.lang.IndexOutOfBoundsException

addRole

public void addRole(int index,
                    Role vRole)
             throws java.lang.IndexOutOfBoundsException
Method addRole

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

clearRole

public void clearRole()
Method clearRole


enumerateRole

public java.util.Enumeration enumerateRole()
Method enumerateRole

Returns:
Enumeration

getRole

public Role getRole(int index)
             throws java.lang.IndexOutOfBoundsException
Method getRole

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

getRole

public Role[] getRole()
Method getRole

Returns:
Role

getRoleCollection

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

Returns:
ArrayList

getRoleCount

public int getRoleCount()
Method getRoleCount

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

removeRole

public boolean removeRole(Role vRole)
Method removeRole

Parameters:
vRole -
Returns:
boolean

setRole

public void setRole(int index,
                    Role vRole)
             throws java.lang.IndexOutOfBoundsException
Method setRole

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

setRole

public void setRole(Role[] roleArray)
Method setRole

Parameters:
roleArray -

setRole

public void setRole(java.util.ArrayList roleCollection)
Method setRole Sets the value of 'role' by copying the given ArrayList.

Parameters:
roleCollection - the Vector to copy.

setRoleCollection

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

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