edu.upenn.cis.pdtb.xpath
Class IsSubConjFunction

java.lang.Object
  extended byedu.upenn.cis.pdtb.xpath.IsSubConjFunction
All Implemented Interfaces:
org.jaxen.Function

public class IsSubConjFunction
extends java.lang.Object
implements org.jaxen.Function

Filter for subordinating conjunctions. This function has the signature:

  boolean is-sc()
  
Returns true iff the context node is an explicit relation and the connHead attribute matches the regex:
 .*(because|although|even though|when|so that|(^|\s)while|(^|\s)if|since|unless|after|until|
 whereas|as$|as though|^till|once|for$|before|lest|except|else|now that).*
 

Since:
0.2.8
Author:
nikhild

Field Summary
static java.util.regex.Pattern SubConjConnPattern
           
 
Constructor Summary
IsSubConjFunction()
           
 
Method Summary
 java.lang.Object call(org.jaxen.Context context, java.util.List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SubConjConnPattern

public static final java.util.regex.Pattern SubConjConnPattern
Constructor Detail

IsSubConjFunction

public IsSubConjFunction()
Method Detail

call

public java.lang.Object call(org.jaxen.Context context,
                             java.util.List args)
                      throws org.jaxen.FunctionCallException
Specified by:
call in interface org.jaxen.Function
Throws:
org.jaxen.FunctionCallException