|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractTransformationNodeVisitor
eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractTargetToSourceVisitor
eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.CellNodeValidator
public class CellNodeValidator
Visitor that validates cell nodes. The tree should have already been annotated with the source instance values when applying this visitor.
Field Summary | |
---|---|
protected TransformationReporter |
reporter
the transformation reporter |
Constructor Summary | |
---|---|
CellNodeValidator(TransformationReporter reporter)
Constructor |
Method Summary | |
---|---|
boolean |
includeAnnotatedNodes()
Specifies if annotated nodes should be included in the traversal. |
protected void |
processValid(Cell cell,
com.google.common.collect.ListMultimap<String,Pair<SourceNode,Entity>> sources,
com.google.common.collect.ListMultimap<String,Pair<TargetNode,Entity>> targets)
Process a valid cell node. |
protected boolean |
validate(CellNode node,
com.google.common.collect.ListMultimap<String,Pair<SourceNode,Entity>> sources,
com.google.common.collect.ListMultimap<String,Pair<TargetNode,Entity>> targets)
Validate a cell node. |
boolean |
visit(CellNode node)
Visit a cell node. |
Methods inherited from class eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractTargetToSourceVisitor |
---|
isFromTargetToSource |
Methods inherited from class eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.AbstractTransformationNodeVisitor |
---|
leave, leave, leave, leave, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final TransformationReporter reporter
Constructor Detail |
---|
public CellNodeValidator(TransformationReporter reporter)
reporter
- the transformation reporterMethod Detail |
---|
public boolean visit(CellNode node)
TransformationNodeVisitor
visit
in interface TransformationNodeVisitor
visit
in class AbstractTransformationNodeVisitor
node
- the cell node
AbstractTransformationNodeVisitor.visit(CellNode)
protected boolean validate(CellNode node, com.google.common.collect.ListMultimap<String,Pair<SourceNode,Entity>> sources, com.google.common.collect.ListMultimap<String,Pair<TargetNode,Entity>> targets)
node
- the cell nodesources
- the named source entities and nodestargets
- the named target entities and nodes
protected void processValid(Cell cell, com.google.common.collect.ListMultimap<String,Pair<SourceNode,Entity>> sources, com.google.common.collect.ListMultimap<String,Pair<TargetNode,Entity>> targets)
cell
- the associated cellsources
- the named source entities and nodestargets
- the named target entities and nodespublic boolean includeAnnotatedNodes()
TransformationNodeVisitor
TransformationNodeVisitor.includeAnnotatedNodes()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |