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.
|
Modifier and Type | Method and Description |
---|---|
Document |
XDMModel.getCurrentDocument()
This api returns the current document in the model, regardless of the state.
|
Document |
XDMModel.getDocument()
This api returns the latest stable document in the model.
|
Modifier and Type | Method and Description |
---|---|
void |
XDMModel.setDocument(Document newDoc) |
Modifier and Type | Method and Description |
---|---|
Document |
NodeInfo.getDocument() |
Document |
SyncPreparation.getNewDocument() |
Document |
SyncPreparation.getOldDocument() |
Modifier and Type | Method and Description |
---|---|
List<Difference> |
DiffFinder.findDiff(Document d1,
Document d2) |
List<Difference> |
XDMTreeDiff.performDiff(Document doc1,
Document doc2) |
List<Difference> |
XDMTreeDiff.performDiff(XDMModel model,
Document doc2) |
List<Difference> |
XDMTreeDiff.performDiffAndMutate(XDMModel model,
Document doc2) |
Constructor and Description |
---|
SyncPreparation(Document newDoc)
Creates a new instance of SyncPreparation
|
SyncPreparation(Document oldDoc,
List<Difference> diffs) |
Modifier and Type | Method and Description |
---|---|
Document |
Document.clone(boolean cloneContent,
boolean cloneAttributes,
boolean cloneChildren) |
Document |
XMLSyntaxParser.BaseDocument basedoc) |
Modifier and Type | Method and Description |
---|---|
String |
NodeImpl.getNamespaceURI(Document document) |
String |
Node.getNamespaceURI(Document document)
Returns namespace of this node in the given Document tree.
|
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) |
List<Node> |
XPathFinder.findNodes(Document root,
String xpathExpression) |
List<Node> |
PathFromRootVisitor.findPath(Document root,
Node target) |
String |
FlushVisitor.flushModel(Document root) |
static String |
XPathFinder.getXpath(Document root,
Node target) |
void |
MergeVisitor.merge(XDMModel model,
Document newDoc)
This method merges the currentModel and the given newDocument.
|
void |
EndPositionFinderVisitor.visit(Document doc) |
void |
PrintVisitor.visit(Document doc) |
void |
XMLNodeVisitor.visit(Document doc) |
void |
PositionFinderVisitor.visit(Document doc) |
void |
DefaultVisitor.visit(Document doc) |
void |
CompareVisitor.visit(Document doc) |
void |
NodeByPositionVisitor.visit(Document doc) |
Constructor and Description |
---|
FindNamespaceVisitor(Document root)
Creates a new instance of FindNamespaceVisitor
|