public class ChangeInfo extends Object
Constructor and Description |
---|
ChangeInfo(Element parent,
Node changed,
boolean isDomainElement,
List<Element> rootToParent,
List<Node> otherNodes)
Creates change info.
|
Modifier and Type | Method and Description |
---|---|
Node |
getActualChangedNode() |
Element |
getChangedElement() |
Node |
getChangedNode() |
List<Node> |
getOtherNonDomainElementNodes() |
Element |
getParent() |
DocumentComponent |
getParentComponent() |
List<Element> |
getParentToRootPath() |
List<Element> |
getRootToParentPath() |
boolean |
isAdded() |
boolean |
isDomainElement() |
boolean |
isDomainElementAdded() |
void |
markNonDomainChildAsChanged() |
void |
markParentAsChanged() |
void |
setAdded(boolean v) |
void |
setDomainElement(boolean v) |
void |
setParentComponent(DocumentComponent component) |
void |
setRootToParentPath(List<Element> path) |
String |
toString() |
public ChangeInfo(Element parent, Node changed, boolean isDomainElement, List<Element> rootToParent, List<Node> otherNodes)
parent
- parent node of changedchanged
- added/removed domain element or first non-domain change node.isDomainElement
- is the changed node a domain element.rootToParent
- path from root to parent node, inclusively.otherNodes
- list of other nodes that are not domain elements beside the changed nodes.public Element getParent()
public Node getChangedNode()
public Element getChangedElement()
public boolean isDomainElement()
public void setDomainElement(boolean v)
public boolean isDomainElementAdded()
public void setAdded(boolean v)
public boolean isAdded()
public void markParentAsChanged()
public void setParentComponent(DocumentComponent component)
public DocumentComponent getParentComponent()
public Node getActualChangedNode()
public void markNonDomainChildAsChanged()