org.ujac.print
Class ChildDefinitionMap

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

public class ChildDefinitionMap
extends HashMap

Name: ChildDefinitionMap
Description: An optimized container for ChildDefinitionMap 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
ChildDefinitionMap()
          Constructs a SupportedChildMap instance with no specific attributes.
ChildDefinitionMap(ChildDefinition childDef)
          Constructs a SupportedChildMap instance with specific attributes.
ChildDefinitionMap(ChildDefinitionMap childDefMap)
          Constructs a AttributeDefinitionMap instance with specific attributes.
 
Method Summary
 ChildDefinitionMap addDefinition(ChildDefinition childDef)
          Adds the given AttributeDefinition instance to the map by using the instances property 'name' as key.
 ChildDefinition getCompatibleDefinition(BaseDocumentTag tag)
          Tells whether or not the given tag class is supported.
 List getSortedChildNames()
          Gets a sorted list of attribute names including all attribute aliases.
 List getSortedChilds()
          Gets a list of all attributes, sorted by their primary names.
 ChildDefinitionMap removeDefinition(ChildDefinition childDef)
          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

ChildDefinitionMap

public ChildDefinitionMap()
Constructs a SupportedChildMap instance with no specific attributes.


ChildDefinitionMap

public ChildDefinitionMap(ChildDefinition childDef)
Constructs a SupportedChildMap instance with specific attributes.

Parameters:
childDef - The first child definition to be added to the map.
See Also:
addDefinition(ChildDefinition)

ChildDefinitionMap

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

Parameters:
childDefMap - The child definition map to copy.
See Also:
#addDefinition(AttributeDefinition)
Method Detail

addDefinition

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

Parameters:
childDef - The child definition to be added to the map.
Returns:
The container itself.

removeDefinition

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

Parameters:
childDef - The child definition to be removed from to the map.
Returns:
The container itself.

getCompatibleDefinition

public ChildDefinition getCompatibleDefinition(BaseDocumentTag tag)
Tells whether or not the given tag class is supported.

Parameters:
tag - The tag to be checked.
Returns:
True if the tag is supported, else false.

getSortedChildNames

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

Returns:
The sorted attribute name list.

getSortedChilds

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

Returns:
The sorted attribute list.


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