public class EntityReferenceTreeNode extends Object
EntityReferenceTree
.Modifier | Constructor and Description |
---|---|
protected |
EntityReferenceTreeNode(Comparator<String> comparator) |
Modifier and Type | Method and Description |
---|---|
EntityReferenceTreeNode |
get(EntityReference path) |
EntityReferenceTreeNode |
get(String name)
Return the first found direct child with passed name.
|
Collection<EntityReferenceTreeNode> |
getChildren() |
Collection<EntityReferenceTreeNode> |
getChildren(EntityType type) |
Collection<EntityReferenceTreeNode> |
getChildren(String name) |
Collection<EntityReferenceTreeNode> |
getChildrenInternal(String name) |
Collection<EntityReference> |
getLocales() |
EntityReference |
getReference() |
String |
toString() |
protected EntityReferenceTreeNode(Comparator<String> comparator)
public EntityReference getReference()
public EntityReferenceTreeNode get(String name)
name
- the name of the child nodepublic EntityReferenceTreeNode get(EntityReference path)
path
- a path in the tree starting from this node, specified as an EntityReference
public Collection<EntityReferenceTreeNode> getChildren()
public Collection<EntityReferenceTreeNode> getChildren(String name)
name
- the name of the children to returnpublic Collection<EntityReferenceTreeNode> getChildren(EntityType type)
type
- the type of the children to returnEntityType
public Collection<EntityReferenceTreeNode> getChildrenInternal(String name)
name
- the name of the children to returnpublic Collection<EntityReference> getLocales()
Locale
Copyright © 2004–2021 XWiki. All rights reserved.