org.ujac.print
Class AttributeDefinitionMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.ujac.print.AttributeDefinitionMap
All Implemented Interfaces:
Serializable, Cloneable, Map

public class AttributeDefinitionMap
extends HashMap

Name: AttributeDefinitionMap
Description: An optimized container for AttributeDefinition instances.

Author:
lauerc
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
AttributeDefinitionMap()
          Constructs a AttributeDefinitionMap instance with specific attributes.
AttributeDefinitionMap(AttributeDefinition attrDef)
          Constructs a AttributeDefinitionMap instance with specific attributes.
AttributeDefinitionMap(AttributeDefinitionMap attrDefMap)
          Constructs a AttributeDefinitionMap instance with specific attributes.
 
Method Summary
 AttributeDefinitionMap addDefinition(AttributeDefinition attrDef)
          Adds the given AttributeDefinition instance to the map by using the instances property 'name' as key.
 List getSortedAttributeNames()
          Gets a sorted list of attribute names including all attribute aliases.
 List getSortedAttributes()
          Gets a list of all attributes, sorted by their primary names.
 AttributeDefinitionMap removeDefinition(AttributeDefinition attrDef)
          Removes the given AttributeDefinition instance from the map by using the instances property 'name' as key.
 
Methods inherited from class java.util.HashMap
clear, clone, 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

AttributeDefinitionMap

public AttributeDefinitionMap()
Constructs a AttributeDefinitionMap instance with specific attributes.


AttributeDefinitionMap

public AttributeDefinitionMap(AttributeDefinition attrDef)
Constructs a AttributeDefinitionMap instance with specific attributes.

Parameters:
attrDef - The first attribute definition to be added to the map.
See Also:
addDefinition(AttributeDefinition)

AttributeDefinitionMap

public AttributeDefinitionMap(AttributeDefinitionMap attrDefMap)
Constructs a AttributeDefinitionMap instance with specific attributes.

Parameters:
attrDefMap - The attribute definition map to copy.
See Also:
addDefinition(AttributeDefinition)
Method Detail

addDefinition

public AttributeDefinitionMap addDefinition(AttributeDefinition attrDef)
Adds the given AttributeDefinition instance to the map by using the instances property 'name' as key.

Parameters:
attrDef - The attribute definition to be added to the map.
Returns:
The container itself.

removeDefinition

public AttributeDefinitionMap removeDefinition(AttributeDefinition attrDef)
Removes the given AttributeDefinition instance from the map by using the instances property 'name' as key.

Parameters:
attrDef - The attribute definition to be removed from to the map.
Returns:
The container itself.

getSortedAttributeNames

public List getSortedAttributeNames()
Gets a sorted list of attribute names including all attribute aliases.

Returns:
The sorted attribute name list.

getSortedAttributes

public List getSortedAttributes()
Gets a list of all attributes, sorted by their primary names.

Returns:
The sorted attribute list.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.