com.sri.oaa2.mapper
Class IclDualTraversal

java.lang.Object
  |
  +--com.sri.oaa2.mapper.IclDualTraversal

public class IclDualTraversal
extends java.lang.Object

Traverses an ICL template, comparing it to a specified ICL tree and allowing substitution of variables.


Field Summary
protected  org.apache.log4j.Logger logger
           
 
Constructor Summary
IclDualTraversal()
           
 
Method Summary
 java.lang.String getReasonFailed()
           
 boolean isMatchFailed()
           
protected  void matchFailed(java.lang.String reasonFailed)
           
protected  void remove()
          Remove the currently visited node.
protected  void replace(IclTerm icl)
          Replaces the currently visited node.
 void traverse(IclTerm template, IclTerm icl)
           
protected  boolean visit(IclTerm template, IclTerm icl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.apache.log4j.Logger logger
Constructor Detail

IclDualTraversal

public IclDualTraversal()
Method Detail

visit

protected boolean visit(IclTerm template,
                        IclTerm icl)
                 throws MappingException
MappingException

traverse

public final void traverse(IclTerm template,
                           IclTerm icl)
                    throws MappingException
MappingException

isMatchFailed

public boolean isMatchFailed()

getReasonFailed

public java.lang.String getReasonFailed()

matchFailed

protected void matchFailed(java.lang.String reasonFailed)

replace

protected final void replace(IclTerm icl)
                      throws MappingException
Replaces the currently visited node.

Parameters:
icl -
MappingException

remove

protected final void remove()
                     throws MappingException
Remove the currently visited node.

MappingException