|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.Node
org.torweg.pulse.component.statistics.model.aggregation.AbstractTreeElement<T>
T - the actual implementation of the AbstractTreeElement@MappedSuperclass public abstract class AbstractTreeElement<T extends AbstractTreeElement<T>>
An abstract base class to derive the nodes the AbstractTreeAggregation operates on from.
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
The logger. |
| Constructor Summary | |
|---|---|
AbstractTreeElement()
|
|
| Method Summary | |
|---|---|
T |
getChildByPathString(java.lang.String path)
Returns a child of the Node by given path. |
java.lang.String |
getPathString()
Returns the pathString as represented by this AbstractTreeElement
. |
StatisticsServer |
getStatisticsServer()
returns the statistics server the path element belongs to. |
boolean |
isRootNode()
Indicates whether the current AbstractTreeElement is a root-
AbstractTreeElement. |
protected void |
setPathString(StatisticsServer statisticsServer)
Sets the pathString to empty string. |
protected void |
setPathString(java.lang.String pString)
Returns the pathString as represented by this AbstractTreeElement
. |
protected void |
setRooNode(boolean isRootNode)
Sets the rootNode for the AbstractTreeElement. |
protected void |
setServer(StatisticsServer s)
Sets the StatisticsServer. |
java.lang.String |
toString()
|
| Methods inherited from class org.torweg.pulse.util.entity.Node |
|---|
addChild, addChild, getChild, getChildIndex, getChildren, getParent, hasChildren, removeChild, setChildren, toJSON |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
public AbstractTreeElement()
| Method Detail |
|---|
protected void setServer(StatisticsServer s)
StatisticsServer.
s - the StatisticsServerpublic final StatisticsServer getStatisticsServer()
public final boolean isRootNode()
AbstractTreeElement is a root-
AbstractTreeElement.
true if and only if the current
AbstractTreeElement is a root- AbstractTreeElement, false otherwiseprotected final void setRooNode(boolean isRootNode)
AbstractTreeElement.
isRootNode - true to mark the AbstractTreeElement as root
node, false otherwisepublic final java.lang.String getPathString()
AbstractTreeElement
.
protected final void setPathString(java.lang.String pString)
AbstractTreeElement
.
pString - the pathString to set
java.lang.NullPointerException - if the pString is null
java.lang.IllegalArgumentException - if the pString is an empty string or contains
whitespace-characters onlyprotected final void setPathString(StatisticsServer statisticsServer)
statisticsServer - a StatisticsServer
java.lang.NullPointerException - if the statisticsServer is nullpublic final T getChildByPathString(java.lang.String path)
Node by given path.
path - the name of the path element
Node or null if not child for the given path
existspublic final java.lang.String toString()
toString in class java.lang.ObjectPathTreeAggregation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||