public class MCCAmetysObjectTree extends Object
AmetysObject
to be used during the
processing of the MCC reports.Modifier and Type | Field and Description |
---|---|
private ContentComparatorResult |
_change |
private List<MCCAmetysObjectTree> |
_children |
private AmetysObject |
_current |
private MCCAmetysObjectTree |
_parent |
private String |
_path |
Modifier | Constructor and Description |
---|---|
|
MCCAmetysObjectTree(AmetysObject current)
The constructor
|
private |
MCCAmetysObjectTree(MCCAmetysObjectTree parent,
AmetysObject current) |
private |
MCCAmetysObjectTree(MCCAmetysObjectTree parent,
AmetysObject current,
ContentComparatorResult change) |
Modifier and Type | Method and Description |
---|---|
protected void |
_addChild(MCCAmetysObjectTree childTree)
Add a new child tree
|
private MCCAmetysObjectTree |
_createChild(AmetysObject child,
ContentComparatorResult change)
Create a child for this node, without adding it to the tree (usefull for tests before adding, addChild to add)
|
MCCAmetysObjectTree |
addChild(AmetysObject child)
Declare a child for the current object.
|
MCCAmetysObjectTree |
addChild(AmetysObject child,
ContentComparatorResult change)
Declare a child for the current object.
|
ContentComparatorResult |
getChange()
Get the change informations for this node
|
List<MCCAmetysObjectTree> |
getChildren()
Get the current ametys object (root level of the tree).
|
AmetysObject |
getCurrent()
Get the current ametys object (root level of the tree).
|
MCCAmetysObjectTree |
getParent()
Get the parent ametys object
|
String |
getPath()
Get the path in the tree.
|
private MCCAmetysObjectTree _parent
private AmetysObject _current
private List<MCCAmetysObjectTree> _children
private ContentComparatorResult _change
private MCCAmetysObjectTree(MCCAmetysObjectTree parent, AmetysObject current, ContentComparatorResult change)
private MCCAmetysObjectTree(MCCAmetysObjectTree parent, AmetysObject current)
public MCCAmetysObjectTree(AmetysObject current)
current
- The AmetysObject
the tree is build onpublic MCCAmetysObjectTree addChild(AmetysObject child)
child
- child for this nodeMCCAmetysObjectTree
for the childpublic MCCAmetysObjectTree addChild(AmetysObject child, ContentComparatorResult change)
child
- child for this nodechange
- changes for this child (if applicable)MCCAmetysObjectTree
for the childprotected void _addChild(MCCAmetysObjectTree childTree)
childTree
- The child tree to addprivate MCCAmetysObjectTree _createChild(AmetysObject child, ContentComparatorResult change)
child
- The child AmetysObject
change
- Changes for this child (if applicable)public MCCAmetysObjectTree getParent()
MCCAmetysObjectTree
or nullpublic AmetysObject getCurrent()
AmetysObject
public List<MCCAmetysObjectTree> getChildren()
List
of MCCAmetysObjectTree
public ContentComparatorResult getChange()
ContentComparatorResult
or null if not applicable