public class EntityMap extends EntityCollectionSupport implements NamedEntityCollection
| Constructor and Description |
|---|
EntityMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
Entity child)
Add a child.
|
EntityMap |
clone()
Clone oneself.
|
Entity |
getChild(String name)
Get the specified child.
|
Map<String,Entity> |
getChildMap()
Get a map of the children.
|
String[] |
getChildNames()
Get the child entities' names.
|
Collection<Entity> |
getChildren()
Get the children.
|
boolean |
hasChild(String name)
Learn whether this NamedEntityCollection has a child of the specified name.
|
getDelim, getValue, isDelimAfter, isSuppressEmptyChildren, length, readFrom, setDelim, setDelimAfter, setSuppressEmptyChildren, setValue, setValue, shouldSuppress, writeTofill, getValuepublic EntityMap()
public void add(String name, Entity child)
name - if null filler elementchild - non-null child Entitypublic Map<String,Entity> getChildMap()
public String[] getChildNames()
getChildNames in interface NamedEntityCollectionpublic Entity getChild(String name)
getChild in interface NamedEntityCollectionname - to findpublic boolean hasChild(String name)
hasChild in interface NamedEntityCollectionname - to findpublic Collection<Entity> getChildren()
getChildren in interface EntityCollectionCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.