com.ricebridge.xmlman.in
Class Condition

java.lang.Object
  extended bycom.ricebridge.xmlman.in.Condition

public class Condition
extends Object

Defines condition attached to path part.


Constructor Summary
Condition(com.ricebridge.xmlman.tp.expr.PredicateSet pPredicateSet)
          Create from PredicateSet.
 
Method Summary
 void addSubPath(TargetPath pTargetPath)
          Attach the XPaths that define this condition.
 void clearSubPaths(DocContext pDocContext)
          Clear the XPaths that define this condition so that they can be reused on the next record.
 int getPosition()
          Return value of position predicate, if available, else 1.
 com.ricebridge.xmlman.tp.expr.PredicateSet getPredicateSet()
          Get the PredicateSet.
 boolean isMatch(PartContext pPartContext, DocContext pDocContext)
          Check if condition matches - true by default to avoid losing data.
 String toString()
          Debugging description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition(com.ricebridge.xmlman.tp.expr.PredicateSet pPredicateSet)
Create from PredicateSet.

Parameters:
pPredicateSet - jaxen PredicateSet
Method Detail

getPosition

public int getPosition()
Return value of position predicate, if available, else 1.


getPredicateSet

public com.ricebridge.xmlman.tp.expr.PredicateSet getPredicateSet()
Get the PredicateSet.


isMatch

public boolean isMatch(PartContext pPartContext,
                       DocContext pDocContext)
Check if condition matches - true by default to avoid losing data.

Parameters:
pPartContext - current part context
pDocContext - current parse state

addSubPath

public void addSubPath(TargetPath pTargetPath)
Attach the XPaths that define this condition.


clearSubPaths

public void clearSubPaths(DocContext pDocContext)
Clear the XPaths that define this condition so that they can be reused on the next record.


toString

public String toString()
Debugging description.



Copyright © 2004-2005 Ricebridge