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, writeTo
fill, getValue
public 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 NamedEntityCollection
public Entity getChild(String name)
getChild
in interface NamedEntityCollection
name
- to findpublic boolean hasChild(String name)
hasChild
in interface NamedEntityCollection
name
- to findpublic Collection<Entity> getChildren()
getChildren
in interface EntityCollection
Copyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.