Package org.apache.uima.cas.impl
Class FSTypeConstraintImpl
java.lang.Object
org.apache.uima.cas.impl.FSTypeConstraintImpl
- All Implemented Interfaces:
Serializable,FSConstraint,FSMatchConstraint,FSTypeConstraint
An implementation of the type constraint interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate TypeSystemprivate SortedIntSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new type to this type constraint.voidAdd a new type to this type constraint.private final voidcompile(TypeSystem ts1) booleanMatch against feature structures.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
nameSet
-
typeSet
-
ts
-
-
Constructor Details
-
FSTypeConstraintImpl
FSTypeConstraintImpl()
-
-
Method Details
-
match
Description copied from interface:FSMatchConstraintMatch against feature structures.- Specified by:
matchin interfaceFSMatchConstraint- Parameters:
fs- The feature structure we want to match.- Returns:
- -
-
compile
-
add
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
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
-