Package | Description |
---|---|
cz.cuni.mff.corrector.intent |
Correction intents implementation.
|
cz.cuni.mff.corrector.tree |
Data trees abstraction for XML documents.
|
Modifier and Type | Field and Description |
---|---|
protected Node |
Intent.baseNode
Optional reference to the base node associated with the node repair.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Node> |
Intent.nodeSequence
Sequence of nodes to be processed.
|
Modifier and Type | Method and Description |
---|---|
Node |
Intent.getBaseNode()
Returns the optional reference to the base node.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Node> |
Intent.getNodesSequence()
Returns the sequence of nested nodes to be processed.
|
Constructor and Description |
---|
Intent(Node baseNode,
NodeRepair nodeRepair,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext,
java.util.List<Context> contextChain)
Creates a new instance of the correction intent.
|
IntentDelete(Node baseNode,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext)
Creates a new instance of the delete correction intent.
|
IntentRename(Node baseNode,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext,
java.lang.String nodeLabel)
Creates a new instance of the rename correction intent.
|
IntentRepair(Node baseNode,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext)
Creates a new instance of the repair correction intent.
|
Constructor and Description |
---|
Intent(Node baseNode,
NodeRepair nodeRepair,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext,
java.util.List<Context> contextChain)
Creates a new instance of the correction intent.
|
IntentCorrect(java.util.List<Node> nodeSequence,
Context grammarContext)
Creates a new instance of the correct correction intent.
|
IntentDelete(Node baseNode,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext)
Creates a new instance of the delete correction intent.
|
IntentRename(Node baseNode,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext,
java.lang.String nodeLabel)
Creates a new instance of the rename correction intent.
|
IntentRepair(Node baseNode,
Vertex initialVertex,
Vertex endingVertex,
java.util.List<Node> nodeSequence,
Context grammarContext)
Creates a new instance of the repair correction intent.
|
Modifier and Type | Class and Description |
---|---|
class |
NodeData
Representation of a data node in a data tree.
|
class |
NodeElement
Representation of an element node in a data tree.
|
Modifier and Type | Method and Description |
---|---|
Node |
NodeElement.getChildNode(int index)
Returns the child number at a given relative position.
|
Node |
Tree.getRootNode()
Returns the root node of the data tree.
|
static Node |
XmlParser.parseXmlDocument(java.lang.String fileName)
Parses provided XML document and returns its recursive node structure.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<Node> |
Node.getChildNodes()
Returns the list of all child nodes.
|
java.util.List<Node> |
NodeData.getChildNodes() |
java.util.List<Node> |
NodeElement.getChildNodes() |
java.util.List<Node> |
NodeElement.getChildNodes(int indexFrom,
int indexTo)
Returns the specified subsequence of child nodes.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeElement.addChildNode(Node childNode)
Adds a new node as the last child node of this parent node.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
Node.getNodesLabels(java.util.List<Node> listNodes)
Translates the given sequence of nodes to their labels.
|
Constructor and Description |
---|
Tree(Node rootNode)
Creates a new instance of a data tree with a specified root node.
|