Package | Description |
---|---|
org.netbeans.modules.xml.xdm |
APIs for obtaining an XDM document and mutating the XDM tree.
|
org.netbeans.modules.xml.xdm.diff |
XML diff capabilities.
|
org.netbeans.modules.xml.xdm.nodes |
XDM-based implementation of DOM interfaces.
|
org.netbeans.modules.xml.xdm.visitor |
Visitors for operations over the XDM such as generating XPath
expressions, calculating document position and finding elements by position.
|
org.netbeans.modules.xml.xdm.xam |
XAM model and component abstractions based on XDM tree.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
XDMModel.add(Node parent,
Node node,
int offset)
This api adds given node to given parent at given index.
|
List<Node> |
XDMModel.append(Node parent,
Node node)
This api adds given node to given parent at the end.
|
List<Node> |
XDMModel.delete(Node n)
This api deletes given node from a tree.
|
List<Node> |
XDMModel.insertBefore(Node parent,
Node node,
Node refChild)
This api adds given node to given parent before given ref node.
|
List<Node> |
XDMModel.modify(Node oldValue,
Node newValue)
This api replaces given old node with given new node.
|
List<Node> |
XDMModel.remove(Node parent,
Node child)
This api deletes given node from a given parent node.
|
List<Node> |
XDMModel.removeChildNodes(Node parent,
Collection<Node> toRemove)
This api deletes given node from a given parent node.
|
List<Node> |
XDMModel.reorder(Node parent,
Node n,
int index)
This api changes index of the given node.
|
List<Node> |
XDMModel.reorderChildren(Node parent,
int[] permutation)
This api changes indexes of the given node children.
|
List<Node> |
XDMModel.replaceChild(Node parent,
Node child,
Node newChild) |
List<Node> |
XDMModel.setTextValue(Node node,
String value) |
Modifier and Type | Method and Description |
---|---|
protected Node |
DiffFinder.findMatch(Element child,
List<Node> childNodes,
Node parent1) |
protected Node |
NodeIdDiffFinder.findMatch(Element child,
List<Node> childNodes,
Node parent1) |
protected Node |
DiffFinder.findMatch(Text child,
List<Node> childNodes) |
protected Node |
NodeIdDiffFinder.findMatch(Text child,
List<Node> childNodes) |
abstract Node |
Difference.getNewParent() |
Node |
Delete.getNewParent() |
Node |
Change.getNewParent() |
Node |
NodeInfo.getNewParent() |
Node |
Add.getNewParent() |
Node |
NodeInfo.getNode() |
Node |
NodeInfo.getParent() |
Modifier and Type | Method and Description |
---|---|
List<Change.Type> |
XDMUtil.XDUDiffFinder.checkChange(Node p1,
Node p2) |
protected List<Change.Type> |
DiffFinder.checkChange(Node p1,
Node p2) |
protected List<Change.Type> |
DiffFinder.checkChange(Node n1,
Node n2,
int p1,
int p2) |
static boolean |
XDMUtil.checkPrettyText(Node txt) |
protected boolean |
DiffFinder.checkTokensEqual(Node p1,
Node p2) |
protected Difference |
DiffFinder.createAddEvent(List<Node> ancestors1,
Node n,
int absolutePos,
List<Node> ancestors2) |
protected Difference |
DiffFinder.createChangeEvent(List<Node> ancestors1,
Node n1,
Node n2,
int n1Pos,
int n2Pos,
List<Change.Type> changes,
List<Node> ancestors2) |
protected Difference |
DiffFinder.createDeleteEvent(List<Node> ancestors1,
Node n,
int pos,
List<Node> ancestors2) |
static int |
XDMUtil.findPosition(Node n) |
protected List<Node> |
DiffFinder.getChildList(Node parent) |
static NodeInfo.NodeType |
DiffFinder.getNodeType(Node child) |
static List<Node> |
DiffFinder.getPathToRoot(Node node) |
protected void |
DiffFinder.markAdd(List<Node> ancestors1,
Node n,
int absolutePos,
int posFromSibling,
Node siblingBefore,
List<Node> ancestors2,
List<Difference> deList) |
protected void |
DiffFinder.markChange(List<Node> ancestors1,
Node n1,
Node n2,
int n1Pos,
int n2Pos,
List<Change.Type> changes,
List<Node> ancestors2,
List<Difference> deList) |
protected void |
DiffFinder.markDelete(List<Node> ancestors1,
Node n,
int pos,
Node siblingBefore,
List<Node> ancestors2,
List<Difference> deList) |
static void |
XDMTreeDiff.printDocument(Node node) |
abstract void |
Difference.setNewParent(Node n) |
void |
Delete.setNewParent(Node p) |
void |
Change.setNewParent(Node parent2) |
void |
NodeInfo.setNewParent(Node parent) |
void |
Add.setNewParent(Node p) |
Constructor and Description |
---|
Add(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n,
int pos)
Creates a new instance of DiffEvent
|
Change(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n1,
Node n2,
int n1Pos,
int n2Pos,
List<Change.Type> changes)
Creates a new instance of DiffEvent
|
Delete(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n,
int pos)
Creates a new instance of DiffEvent
|
Difference(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n1,
Node n2,
int n1Pos,
int n2Pos)
Creates a new instance of DiffEvent
|
NodeInfo(Node n,
int pos,
List<Node> ancestors1,
List<Node> ancestors2) |
Modifier and Type | Method and Description |
---|---|
Node |
Element.appendChild(Node node) |
Node |
NodeImpl.appendChild(Node node)
Adds the node newChild to the end of the list of children of this node.
|
Node |
Element.appendChild(Node node,
boolean consolidateNamespaces) |
Node |
Node.clone(boolean cloneContent,
boolean cloneAttributes,
boolean cloneChildren)
This api clones the node object and returns the clone.
|
Node |
NodeImpl.clone(boolean cloneContent,
boolean cloneAttributes,
boolean cloneChildren)
This api clones the node object and returns the clone.
|
Node |
NodeImpl.cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
|
Node |
NodeImpl.cloneNode(boolean deep,
boolean cloneNamespacePrefix) |
Node |
NodeImpl.cloneNode(boolean deep,
Map<Integer,String> allNS,
Map<String,String> clonePrefixes) |
Node |
NodeImpl.cloneShallowWithModelContext() |
Node |
NodeImpl.copy()
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.
|
Node |
NodeImpl.getFirstChild()
The first child of this node.
|
Node |
NodeImpl.getLastChild()
The last child of this node.
|
Node |
NodeImpl.getNextSibling() |
Node |
NodeImpl.getParentNode() |
Node |
NodeImpl.getPreviousSibling() |
Node |
Element.insertBefore(Node newChild,
Node refChild) |
Node |
NodeImpl.insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node refChild.
|
Node |
NodeImpl.removeChild(Node node)
Removes the node from children list.
|
Node |
NodeImpl.reorderChild(Node child,
int index)
Moves child node to new position.
|
Node |
NodeImpl.replaceChild(Node newNode,
Node oldNode)
Repalces the node oldNode with newNode.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeImpl.copyTokens(Node newNode) |
int |
Node.getIndexOfChild(Node child)
Lookup child index of given child based on node ID.
|
int |
NodeImpl.getIndexOfChild(Node n) |
String |
Document.getNamespaceURI(Node node)
This api returns the namespaceuri of specified node.
|
boolean |
Node.isEquivalentNode(Node node) |
boolean |
NodeImpl.isEquivalentNode(Node node) |
static String |
NodeImpl.lookupNamespace(Node current,
List<Node> ancestors) |
Modifier and Type | Method and Description |
---|---|
Node |
FindVisitor.find(Document root,
int targetId) |
Node |
FindVisitor.find(Document root,
Node target) |
Node |
XPathFinder.findNode(Document root,
String xpath) |
Node |
NodeByPositionVisitor.getContainingNode(int position) |
Modifier and Type | Method and Description |
---|---|
boolean |
CompareVisitor.compare(Node n1,
Node n2) |
Node |
FindVisitor.find(Document root,
Node target) |
String |
FindNamespaceVisitor.findNamespace(Node target) |
List<Node> |
PathFromRootVisitor.findPath(Document root,
Node target) |
int |
PositionFinderVisitor.findPosition(Node rootNode,
Node node) |
int |
EndPositionFinderVisitor.findPosition(Node rootNode,
Node node) |
static String |
XPathFinder.getXpath(Document root,
Node target) |
protected void |
MergeVisitor.visitNode(Node node) |
protected void |
DefaultVisitor.visitNode(Node node) |
protected void |
FindNamespaceVisitor.visitNode(Node node) |
protected void |
FlushVisitor.visitNode(Node node) |
protected void |
PathFromRootVisitor.visitNode(Node n) |
protected void |
FindVisitor.visitNode(Node node) |
protected void |
XPathFinder.visitNode(Node e) |
protected void |
ChildVisitor.visitNode(Node container) |
Constructor and Description |
---|
NodeByPositionVisitor(Node rootNode) |
Modifier and Type | Method and Description |
---|---|
protected void |
XDMListener.processEvent(Node eventNode,
NodeInfo nodeInfo,
boolean isAdded) |
protected void |
XDMListener.processRootRelatedEvent(Node eventNode,
List<Node> pathToRoot,
boolean isAdded) |