public class CellNodeValidator extends AbstractTargetToSourceVisitor
Modifier and Type | Field and Description |
---|---|
protected TransformationReporter |
reporter
the transformation reporter
|
Constructor and Description |
---|
CellNodeValidator(TransformationReporter reporter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
isFromTargetToSource
protected final TransformationReporter reporter
public CellNodeValidator(TransformationReporter reporter)
reporter
- the transformation reporterpublic boolean visit(CellNode node)
TransformationNodeVisitor
visit
in interface TransformationNodeVisitor
visit
in class AbstractTransformationNodeVisitor
node
- the cell nodeAbstractTransformationNodeVisitor.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 nodesprotected 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()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a