pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.view
Class GroupAnalysisViewControllerResultData.PathTreeAggregationsNode

java.lang.Object
  extended by org.torweg.pulse.component.statistics.view.GroupAnalysisViewControllerResultData.PathTreeAggregationsNode
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
GroupAnalysisViewControllerResultData

protected static final class GroupAnalysisViewControllerResultData.PathTreeAggregationsNode
extends java.lang.Object
implements java.io.Serializable

Simply an information wrapper (to feed the tree of the data view of the administration ui) which accumulates the statistical data for a PathTreeElement and a set of corresponding PathTreeAggregations.

NOTE: The default naming pattern for the JAXB annotated fields is being broken here. This is because the data generated is to feed the Ext tree in the website administration ui and therefore has to meet the requirements of the Ext.tree.AsyncTreeNode. This will be refactored with the next version of the website administration.

Version:
$Revision: 1568 $
Author:
Daniel Dietz
See Also:
Serialized Form

Field Summary
static java.lang.String UI_PROVIDER
          The ExtJs-"uiProvider".
 
Constructor Summary
protected GroupAnalysisViewControllerResultData.PathTreeAggregationsNode()
          Deprecated. 
protected GroupAnalysisViewControllerResultData.PathTreeAggregationsNode(PathTreeElement p, java.util.List<PathTreeAggregation> aggrs)
          Creates a new PathTreeAggregationsNode for the given PathTreeAggregations.
 
Method Summary
 void addChild(GroupAnalysisViewControllerResultData.PathTreeAggregationsNode childNode)
          Adds the given PathTreeAggregationsNode to the children list.
 java.util.List<PathTreeAggregation> getAggregations()
          Returns the underlying PathTreeAggregations.
 int getChildHits()
          Returns the child hits.
 java.util.Set<GroupAnalysisViewControllerResultData.PathTreeAggregationsNode> getChildNodes()
          Returns the child nodes.
 int getHits()
          Returns the hits.
 java.lang.Long getId()
          Returns the id.
 PathTreeElement getPath()
          Returns the underlying PathTreeElement.
 java.lang.String getText()
          Returns the text.
 boolean isExpandable()
          Returns whether the PathTreeAggregationsNode is expandable.
 boolean isHasChildNodes()
          Returns whether the RefererTreeAggregationsNode has children.
 boolean isLeaf()
          Returns whether the PathTreeAggregationsNode is a leaf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_PROVIDER

public static final java.lang.String UI_PROVIDER
The ExtJs-"uiProvider".

See Also:
Constant Field Values
Constructor Detail

GroupAnalysisViewControllerResultData.PathTreeAggregationsNode

@Deprecated
protected GroupAnalysisViewControllerResultData.PathTreeAggregationsNode()
Deprecated. 

Default constructor.


GroupAnalysisViewControllerResultData.PathTreeAggregationsNode

protected GroupAnalysisViewControllerResultData.PathTreeAggregationsNode(PathTreeElement p,
                                                                         java.util.List<PathTreeAggregation> aggrs)
Creates a new PathTreeAggregationsNode for the given PathTreeAggregations.

Parameters:
p - the current PathTreeElement
aggrs - the List&lt;PathTreeAggregation&gt;
Throws:
java.lang.IllegalArgumentException - if the given path is null
Method Detail

getPath

public PathTreeElement getPath()
Returns the underlying PathTreeElement.

Returns:
the underlying PathTreeElement

getAggregations

public java.util.List<PathTreeAggregation> getAggregations()
Returns the underlying PathTreeAggregations.

Returns:
the underlying PathTreeAggregations

getId

public java.lang.Long getId()
Returns the id.

Returns:
the id

getText

public java.lang.String getText()
Returns the text.

Returns:
the text

getHits

public int getHits()
Returns the hits.

Returns:
the hits

getChildHits

public int getChildHits()
Returns the child hits.

Returns:
the childHits

isLeaf

public boolean isLeaf()
Returns whether the PathTreeAggregationsNode is a leaf.

Returns:
true if the PathTreeAggregationsNode is a leaf, false otherwise

isExpandable

public boolean isExpandable()
Returns whether the PathTreeAggregationsNode is expandable.

Returns:
true if the PathTreeAggregationsNode is expandable, false otherwise

isHasChildNodes

public boolean isHasChildNodes()
Returns whether the RefererTreeAggregationsNode has children.

Returns:
true if the RefererTreeAggregationsNode has children, false otherwise

getChildNodes

public java.util.Set<GroupAnalysisViewControllerResultData.PathTreeAggregationsNode> getChildNodes()
Returns the child nodes.

Returns:
the childNodes

addChild

public void addChild(GroupAnalysisViewControllerResultData.PathTreeAggregationsNode childNode)
Adds the given PathTreeAggregationsNode to the children list.

Parameters:
childNode - the PathTreeAggregationsNode