org.annotation.wordfreak
Class DefaultAnnotationFilter

java.lang.Object
  extended byorg.annotation.wordfreak.DefaultAnnotationFilter
All Implemented Interfaces:
AnnotationFilter

public class DefaultAnnotationFilter
extends java.lang.Object
implements AnnotationFilter


Field Summary
static java.lang.String CONFIDENCE
           
static java.lang.String EQ
           
static java.lang.String EXACT
           
static java.lang.String GT
           
static java.lang.String LT
           
static java.lang.String MORPH
           
static java.lang.String NE
           
static java.lang.String REGEX
           
static java.lang.String TEXT
           
static java.lang.String TYPE
           
 
Constructor Summary
DefaultAnnotationFilter()
           
DefaultAnnotationFilter(double d, java.util.List lm)
           
DefaultAnnotationFilter(java.lang.String s, double d, java.util.List lm)
           
DefaultAnnotationFilter(java.lang.String s, double d, java.lang.String t, java.util.List lm, boolean inc)
           
 
Method Summary
 void addAnnotationFilterListener(AnnotationFilterListener l)
          Adds the specified listener to the list of listeners which are notified of changed to this filter.
 boolean changed()
           
 java.util.Collection getAnnotators()
           
 boolean getInclude()
           
 java.lang.String getMatchType(java.lang.String key)
           
 java.lang.String getMethod(java.lang.String key)
           
 java.lang.String getRegularExpression(java.lang.String key)
           
 java.lang.Object getValue(java.lang.String key)
           
 void init(java.lang.String w, double c, java.lang.String t, java.util.List l, boolean i)
           
 java.util.Iterator iterator()
           
 boolean match(Annotation a)
          Return true if the specified annotation matches this filter.
static void parseAnnotationFilter(DefaultAnnotationFilter af, java.lang.String s)
           
static DefaultAnnotationFilter parseAnnotationFilter(java.lang.String s)
           
 void remove(java.lang.String key)
           
 void removeAnnotationFilterListener(AnnotationFilterListener l)
          Removes the specified listener from the list of listeners which are notified of changed to this filter.
 void reparseAnnotationFilter(java.lang.String s)
           
 void setChanged()
           
 void setInclude(boolean i)
           
 void setMatchType(java.lang.String key, java.lang.String mt)
           
 void setMethod(java.lang.String key, java.lang.String m)
           
 void setValue(java.lang.String key, java.lang.String value)
           
 java.lang.String toString()
           
 void updateRegExpr()
           
 boolean validateRegularExpression()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIDENCE

public static final java.lang.String CONFIDENCE
See Also:
Constant Field Values

TEXT

public static final java.lang.String TEXT
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

EXACT

public static final java.lang.String EXACT
See Also:
Constant Field Values

REGEX

public static final java.lang.String REGEX
See Also:
Constant Field Values

MORPH

public static final java.lang.String MORPH
See Also:
Constant Field Values

GT

public static final java.lang.String GT
See Also:
Constant Field Values

LT

public static final java.lang.String LT
See Also:
Constant Field Values

EQ

public static final java.lang.String EQ
See Also:
Constant Field Values

NE

public static final java.lang.String NE
See Also:
Constant Field Values
Constructor Detail

DefaultAnnotationFilter

public DefaultAnnotationFilter()

DefaultAnnotationFilter

public DefaultAnnotationFilter(double d,
                               java.util.List lm)

DefaultAnnotationFilter

public DefaultAnnotationFilter(java.lang.String s,
                               double d,
                               java.util.List lm)

DefaultAnnotationFilter

public DefaultAnnotationFilter(java.lang.String s,
                               double d,
                               java.lang.String t,
                               java.util.List lm,
                               boolean inc)
Method Detail

addAnnotationFilterListener

public void addAnnotationFilterListener(AnnotationFilterListener l)
Description copied from interface: AnnotationFilter
Adds the specified listener to the list of listeners which are notified of changed to this filter.

Specified by:
addAnnotationFilterListener in interface AnnotationFilter
Parameters:
l - The object which will be notified.

removeAnnotationFilterListener

public void removeAnnotationFilterListener(AnnotationFilterListener l)
Description copied from interface: AnnotationFilter
Removes the specified listener from the list of listeners which are notified of changed to this filter.

Specified by:
removeAnnotationFilterListener in interface AnnotationFilter
Parameters:
l - The object which will no longer be notified.

init

public void init(java.lang.String w,
                 double c,
                 java.lang.String t,
                 java.util.List l,
                 boolean i)

changed

public boolean changed()

getAnnotators

public java.util.Collection getAnnotators()

iterator

public java.util.Iterator iterator()

setMethod

public void setMethod(java.lang.String key,
                      java.lang.String m)

getMethod

public java.lang.String getMethod(java.lang.String key)

setMatchType

public void setMatchType(java.lang.String key,
                         java.lang.String mt)

getMatchType

public java.lang.String getMatchType(java.lang.String key)

setValue

public void setValue(java.lang.String key,
                     java.lang.String value)

getValue

public java.lang.Object getValue(java.lang.String key)

setChanged

public void setChanged()

remove

public void remove(java.lang.String key)

getRegularExpression

public java.lang.String getRegularExpression(java.lang.String key)

validateRegularExpression

public boolean validateRegularExpression()

updateRegExpr

public void updateRegExpr()

setInclude

public void setInclude(boolean i)

getInclude

public boolean getInclude()

match

public boolean match(Annotation a)
Description copied from interface: AnnotationFilter
Return true if the specified annotation matches this filter.

Specified by:
match in interface AnnotationFilter
Parameters:
a - The annotation to apply the filter to.
Returns:
true if the specified annotation matches this filter, false otherwise.

toString

public java.lang.String toString()

parseAnnotationFilter

public static DefaultAnnotationFilter parseAnnotationFilter(java.lang.String s)

parseAnnotationFilter

public static void parseAnnotationFilter(DefaultAnnotationFilter af,
                                         java.lang.String s)

reparseAnnotationFilter

public void reparseAnnotationFilter(java.lang.String s)


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.