Package | Description |
---|---|
de.unirostock.sems.xmlutils.alg | |
de.unirostock.sems.xmlutils.ds | |
de.unirostock.sems.xmlutils.tools |
Modifier and Type | Method and Description |
---|---|
double |
SemsWeighter.getWeight(DocumentNode node) |
double |
XyWeighter.getWeight(DocumentNode node) |
abstract double |
Weighter.getWeight(DocumentNode node)
Computes the weight of a DocumentNode.
|
Modifier and Type | Field and Description |
---|---|
protected DocumentNode |
TreeNode.parent
The parent node.
|
Modifier and Type | Method and Description |
---|---|
DocumentNode |
DocumentNode.extract()
Extracts this subtree.
|
DocumentNode |
TreeDocument.getNodeById(String id)
Gets the node by id.
|
DocumentNode |
TreeNode.getParent()
Gets the parent node.
|
DocumentNode |
TreeDocument.getRoot()
Gets the root node.
|
Modifier and Type | Method and Description |
---|---|
List<DocumentNode> |
TreeDocument.getNodesByTag(String tag)
Gets the nodes sharing a certain tag name.
|
Modifier and Type | Method and Description |
---|---|
void |
DocumentNode.addChild(DocumentNode toAdd)
Adds a child to this node.
|
double |
DocumentNode.getAttributeDistance(DocumentNode cmp)
Calculates the distance of attributes.
|
double |
DocumentNode.getAttributeDistance(DocumentNode cmp,
boolean allowDifferentIds,
boolean careAboutNames,
boolean stricterNames)
Calculates the distance of attributes.
|
boolean |
DocumentNode.isBelow(DocumentNode parent)
Checks if this node is a child of some other node (multilevel).
|
void |
DocumentNode.rmChild(DocumentNode toRemove)
Remove a child.
|
Constructor and Description |
---|
DocumentNode(org.jdom2.Element element,
DocumentNode parent,
TreeDocument doc,
Weighter w,
int numChild,
int level)
Instantiates a new document node.
|
TextNode(String text,
DocumentNode parent,
TreeDocument doc,
int numChild,
Weighter w,
int level)
Instantiates a new text node.
|
TextNode(TextNode toCopy,
DocumentNode parent,
int numChild)
Copies a text node.
|
TreeNode(int type,
DocumentNode parent,
TreeDocument doc,
int level)
Instantiates a new tree node.
|
Modifier and Type | Method and Description |
---|---|
static org.jdom2.Document |
DocumentTools.getSubDoc(DocumentNode node)
Computes the document oft a subtree.
|
static String |
DocumentTools.printPrettySubDoc(DocumentNode node)
Prints the pretty sub doc.
|
static String |
DocumentTools.printSubDoc(DocumentNode node)
Prints the sub doc.
|
static String |
DocumentTools.transformMathML(DocumentNode doc)
Transform content MathML to display MathML, e.g.
|
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.