org.kinsources.kiwa.accounts
Class Attributes

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,Attribute>
          extended by org.kinsources.kiwa.accounts.Attributes
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Attribute>, java.util.Map<java.lang.String,Attribute>

public class Attributes
extends java.util.HashMap<java.lang.String,Attribute>
implements java.lang.Iterable<Attribute>

Author:
christian.momon@devinsy.fr
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Attributes()
           
Attributes(Attributes source)
           
Attributes(int capacity)
           
 
Method Summary
 void add(Attribute attribute)
           
 void addAll(Attributes source)
           
 Attributes clone()
          This method returns a deep copy of the current object.
 java.lang.String getValue(java.lang.String label)
           
 java.util.Iterator<Attribute> iterator()
           
 java.util.Set<java.lang.String> labels()
           
 void put(Attribute attribute)
           
 Attribute put(java.lang.String label, java.lang.String value)
           
 void rename(Attribute attribute, java.lang.String newLabel)
           
 java.util.List<Attribute> toList()
           
 
Methods inherited from class java.util.HashMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Attributes

public Attributes()

Attributes

public Attributes(Attributes source)

Attributes

public Attributes(int capacity)
Method Detail

add

public void add(Attribute attribute)
Parameters:
attribute -

addAll

public void addAll(Attributes source)
Parameters:
source -

clone

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

Overrides:
clone in class java.util.HashMap<java.lang.String,Attribute>
See Also:
HashMap.clone()

getValue

public java.lang.String getValue(java.lang.String label)

iterator

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

labels

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

put

public void put(Attribute attribute)

put

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

rename

public void rename(Attribute attribute,
                   java.lang.String newLabel)
Parameters:
attribute -
newLabel -

toList

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