Class MCCAmetysObjectTree
java.lang.Object
org.ametys.plugins.odfpilotage.report.impl.mcc.MCCAmetysObjectTree
Structure representing a tree of
AmetysObject
to be used during the
processing of the MCC reports.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_addChild
(MCCAmetysObjectTree childTree) Add a new child treeaddChild
(AmetysObject child) Declare a child for the current object.addChild
(AmetysObject child, ContentComparatorResult change) Declare a child for the current object.Get the change informations for this nodeGet the current ametys object (root level of the tree).Get the current ametys object (root level of the tree).Get the parent ametys objectgetPath()
Get the path in the tree.
-
Constructor Details
-
MCCAmetysObjectTree
The constructor- Parameters:
current
- TheAmetysObject
the tree is build on
-
-
Method Details
-
addChild
Declare a child for the current object.- Parameters:
child
- child for this node- Returns:
- The corresponding
MCCAmetysObjectTree
for the child
-
addChild
Declare a child for the current object.- Parameters:
child
- child for this nodechange
- changes for this child (if applicable)- Returns:
- The corresponding
MCCAmetysObjectTree
for the child
-
_addChild
Add a new child tree- Parameters:
childTree
- The child tree to add
-
getParent
Get the parent ametys object- Returns:
MCCAmetysObjectTree
or null
-
getCurrent
Get the current ametys object (root level of the tree).- Returns:
AmetysObject
-
getChildren
Get the current ametys object (root level of the tree).- Returns:
List
ofMCCAmetysObjectTree
-
getChange
Get the change informations for this node- Returns:
ContentComparatorResult
or null if not applicable
-
getPath
Get the path in the tree. orgunits are excluded.- Returns:
- the path as a
String
-