org.xwiki.model.reference
Class EntityReferenceTreeNode

java.lang.Object
  extended by org.xwiki.model.reference.EntityReferenceTreeNode
Direct Known Subclasses:
EntityReferenceTree

@Unstable
public class EntityReferenceTreeNode
extends Object

A node in a EntityReferenceTree.

Since:
5.4RC1
Version:
$Id: c33ba9939498cbc6fa9977caa8235c7733d3d46d $

Constructor Summary
protected EntityReferenceTreeNode(Comparator<String> comparator)
           
 
Method Summary
 EntityReferenceTreeNode get(String name)
           
 Collection<EntityReferenceTreeNode> getChildren()
           
 Collection<EntityReference> getLocales()
           
 EntityReference getReference()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityReferenceTreeNode

protected EntityReferenceTreeNode(Comparator<String> comparator)
Method Detail

getReference

public EntityReference getReference()
Returns:
the reference associated to this node

get

public EntityReferenceTreeNode get(String name)
Parameters:
name - the name of the child node
Returns:
the node associated to the passed name

getChildren

public Collection<EntityReferenceTreeNode> getChildren()
Returns:
the child reference nodes

getLocales

public Collection<EntityReference> getLocales()
Returns:
the child reference nodes

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004–2014 XWiki. All rights reserved.