org.kinsources.kiwa.accounts
Class IndexedRoles

java.lang.Object
  extended by org.kinsources.kiwa.accounts.IndexedRoles
All Implemented Interfaces:
java.lang.Iterable<Role>

public class IndexedRoles
extends java.lang.Object
implements java.lang.Iterable<Role>

Author:
christian.momon@devinsy.fr

Constructor Summary
IndexedRoles()
           
IndexedRoles(int capacity)
           
 
Method Summary
 void add(Role role)
           
 void addAll(IndexedRoles source)
           
 IndexedRoles clone()
          This method returns a deep copy of the current object.
 java.util.Iterator<Role> iterator()
           
 java.util.Set<java.lang.String> labels()
           
 void put(Role role)
           
 Attribute put(java.lang.String label, java.lang.String value)
           
 void rename(Role role, java.lang.String newName)
           
 java.util.List<Role> toList()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedRoles

public IndexedRoles()

IndexedRoles

public IndexedRoles(int capacity)
Method Detail

add

public void add(Role role)
Parameters:
attribute -

addAll

public void addAll(IndexedRoles source)
Parameters:
source -

clone

public IndexedRoles clone()
This method returns a deep copy of the current object.

Overrides:
clone in class java.lang.Object
See Also:
HashMap.clone()

iterator

public java.util.Iterator<Role> iterator()
Specified by:
iterator in interface java.lang.Iterable<Role>

labels

public java.util.Set<java.lang.String> labels()
Returns:

put

public void put(Role role)

put

public Attribute put(java.lang.String label,
                     java.lang.String value)
Parameters:
label -
value -

rename

public void rename(Role role,
                   java.lang.String newName)
Parameters:
attribute -
newLabel -

toList

public java.util.List<Role> toList()
Returns: