|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
org.ujac.print.ChildDefinitionMap
public class ChildDefinitionMap
Name: ChildDefinitionMap
Description: An optimized container for ChildDefinitionMap instances.
| 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 |
|---|
public ChildDefinitionMap()
public ChildDefinitionMap(ChildDefinition childDef)
childDef - The first child definition to be added to the map.addDefinition(ChildDefinition)public ChildDefinitionMap(ChildDefinitionMap childDefMap)
childDefMap - The child definition map to copy.#addDefinition(AttributeDefinition)| Method Detail |
|---|
public ChildDefinitionMap addDefinition(ChildDefinition childDef)
childDef - The child definition to be added to the map.
public ChildDefinitionMap removeDefinition(ChildDefinition childDef)
childDef - The child definition to be removed from to the map.
public ChildDefinition getCompatibleDefinition(BaseDocumentTag tag)
tag - The tag to be checked.
public List getSortedChildNames()
public List getSortedChilds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||