Package org.apache.uima.cas.impl
Class FSStringConstraintImpl
- java.lang.Object
-
- org.apache.uima.cas.impl.FSStringConstraintImpl
-
- All Implemented Interfaces:
java.io.Serializable
,FSConstraint
,FSStringConstraint
class FSStringConstraintImpl extends java.lang.Object implements FSStringConstraint
Implement the FSStringConstraint interface. Package private.- Version:
- $Revision: 1.1 $
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private java.lang.String
string
-
Constructor Summary
Constructors Constructor Description FSStringConstraintImpl()
Constructor is package private.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
equals(java.lang.String s)
String value of matched FS must match input String.boolean
match(java.lang.String s)
Check if String matches defined constraints.java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
string
private java.lang.String string
-
-
Method Detail
-
equals
public void equals(java.lang.String s)
Description copied from interface:FSStringConstraint
String value of matched FS must match input String.- Specified by:
equals
in interfaceFSStringConstraint
- Parameters:
s
- The string that the matched FS must equal.
-
match
public boolean match(java.lang.String s)
Description copied from interface:FSStringConstraint
Check if String matches defined constraints.- Specified by:
match
in interfaceFSStringConstraint
- Parameters:
s
- The String to be checked.- Returns:
true
iff the String satisfies the constraints.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-