Package org.apache.uima.cas.impl
Class FSTypeConstraintImpl
- java.lang.Object
-
- org.apache.uima.cas.impl.FSTypeConstraintImpl
-
- All Implemented Interfaces:
java.io.Serializable,FSConstraint,FSMatchConstraint,FSTypeConstraint
class FSTypeConstraintImpl extends java.lang.Object implements FSTypeConstraint
An implementation of the type constraint interface.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>nameSetprivate static longserialVersionUIDprivate TypeSystemtsprivate SortedIntSettypeSet
-
Constructor Summary
Constructors Constructor Description FSTypeConstraintImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String type)Add a new type to this type constraint.voidadd(Type type)Add a new type to this type constraint.private voidcompile(TypeSystem ts1)booleanmatch(FeatureStructure fs)Match against feature structures.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
nameSet
private java.util.Set<java.lang.String> nameSet
-
typeSet
private transient SortedIntSet typeSet
-
ts
private transient TypeSystem ts
-
-
Method Detail
-
match
public boolean match(FeatureStructure fs)
Description copied from interface:FSMatchConstraintMatch against feature structures.- Specified by:
matchin interfaceFSMatchConstraint- Parameters:
fs- The feature structure we want to match.- Returns:
- -
-
compile
private final void compile(TypeSystem ts1)
-
add
public void add(Type type)
Description copied from interface:FSTypeConstraintAdd a new type to this type constraint. This method can be called more than once. Multiple types will be interpreted disjunctively.- Specified by:
addin interfaceFSTypeConstraint- Parameters:
type- A type that should be permitted by this constraint.
-
add
public void add(java.lang.String type)
Description copied from interface:FSTypeConstraintAdd a new type to this type constraint. This method can be called more than once. Multiple types will be interpreted disjunctively.- Specified by:
addin interfaceFSTypeConstraint- Parameters:
type- A fully qualified type name that should be permitted by this constraint.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-