|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap org.ujac.print.AttributeDefinitionMap
public class AttributeDefinitionMap
Name: AttributeDefinitionMap
Description: An optimized container for AttributeDefinition instances.
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 |
---|
public AttributeDefinitionMap()
public AttributeDefinitionMap(AttributeDefinition attrDef)
attrDef
- The first attribute definition to be added to the map.addDefinition(AttributeDefinition)
public AttributeDefinitionMap(AttributeDefinitionMap attrDefMap)
attrDefMap
- The attribute definition map to copy.addDefinition(AttributeDefinition)
Method Detail |
---|
public AttributeDefinitionMap addDefinition(AttributeDefinition attrDef)
attrDef
- The attribute definition to be added to the map.
public AttributeDefinitionMap removeDefinition(AttributeDefinition attrDef)
attrDef
- The attribute definition to be removed from to the map.
public List getSortedAttributeNames()
public List getSortedAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |