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 long
private TypeSystem
private SortedIntSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new type to this type constraint.void
Add a new type to this type constraint.private final void
compile
(TypeSystem ts1) boolean
Match 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:FSMatchConstraint
Match against feature structures.- Specified by:
match
in interfaceFSMatchConstraint
- Parameters:
fs
- The feature structure we want to match.- Returns:
- -
-
compile
-
add
Description copied from interface:FSTypeConstraint
Add a new type to this type constraint. This method can be called more than once. Multiple types will be interpreted disjunctively.- Specified by:
add
in interfaceFSTypeConstraint
- Parameters:
type
- A type that should be permitted by this constraint.
-
add
Description copied from interface:FSTypeConstraint
Add a new type to this type constraint. This method can be called more than once. Multiple types will be interpreted disjunctively.- Specified by:
add
in interfaceFSTypeConstraint
- Parameters:
type
- A fully qualified type name that should be permitted by this constraint.
-
toString
-