Package org.apache.uima.cas.impl
Class TypeImpl_stringSubtype
- java.lang.Object
-
- org.apache.uima.cas.impl.TypeImpl
-
- org.apache.uima.cas.impl.TypeImpl_primitive
-
- org.apache.uima.cas.impl.TypeImpl_string
-
- org.apache.uima.cas.impl.TypeImpl_stringSubtype
-
public class TypeImpl_stringSubtype extends TypeImpl_string
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.lang.String>
allowedValues
-
Fields inherited from class org.apache.uima.cas.impl.TypeImpl
hasRefFeature, highestOffset, isBuiltIn, isCreatableAndNotBuiltinArray, isFeatureFinal, isInheritanceFinal, isLongOrDouble, isRefType, javaClass, nbrOfLongOrDoubleFeatures, nbrOfUsedIntDataSlots, nbrOfUsedRefDataSlots, singleton, slotKind
-
-
Constructor Summary
Constructors Constructor Description TypeImpl_stringSubtype(java.lang.String name, TypeSystemImpl tsi, TypeImpl supertype, java.util.Set<java.lang.String> allowedValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.Set<java.lang.String>
getAllowedValues()
boolean
isStringSubtype()
Check if the type is a String subtype.(package private) void
validateIsInAllowedValues(java.lang.String s)
-
Methods inherited from class org.apache.uima.cas.impl.TypeImpl_string
isStringOrStringSubtype, subsumes
-
Methods inherited from class org.apache.uima.cas.impl.TypeImpl_primitive
isPrimitive
-
Methods inherited from class org.apache.uima.cas.impl.TypeImpl
addFeature, checkExistingFeatureCompatible, compareTo, computeDepthFirstCode, consolidateType, equals, getAdjOffset, getAllSubtypes, getAllSuperTypes, getAppropriateFeatures, getCode, getComponentSlotKind, getComponentType, getDirectSubtypes, getFeature, getFeatureByAdjOffset, getFeatureByBaseName, getFeatureImpls, getFeatures, getFeaturesAsStream, getFsSpaceReq, getFsSpaceReq, getFsSpaceReq, getJavaClass, getJCasClassName, getMergedStaticFeaturesIntroducedByThisType, getName, getNbrOfLongOrDoubleFeatures, getNumberOfFeatures, getShortName, getStaticMergedNonSofaFsRefs, getSuperType, getTypeSystem, hashCode, hashCodeNameLong, hasRefFeature, hasSupertype, initAdjOffset2FeatureMaps, isAnnotationBaseType, isAnnotationType, isAppropriateFeature, isArray, isAuxStoredArray, isCreatableAndNotBuiltinArray, isFeatureFinal, isHeapStoredArray, isInheritanceFinal, isLongOrDouble, isPrimitiveArrayType, isTopType, isTypedFsArray, iterator, prettyPrint, prettyPrintWithSubTypes, setBuiltIn, setFeatureFinal, setInheritanceFinal, setJavaClass, setStaticMergedIntFeaturesList, setStaticMergedNonSofaFsRefs, setStaticMergedRefFeaturesList, subsumesStrictly, subsumesValue, toString, toString
-
-
-
-
Constructor Detail
-
TypeImpl_stringSubtype
public TypeImpl_stringSubtype(java.lang.String name, TypeSystemImpl tsi, TypeImpl supertype, java.util.Set<java.lang.String> allowedValues)
-
-
Method Detail
-
getAllowedValues
java.util.Set<java.lang.String> getAllowedValues()
-
validateIsInAllowedValues
void validateIsInAllowedValues(java.lang.String s)
-
isStringSubtype
public boolean isStringSubtype()
Description copied from interface:Type
Check if the type is a String subtype. Note: returns false if a plain string- Specified by:
isStringSubtype
in interfaceType
- Overrides:
isStringSubtype
in classTypeImpl
- Returns:
true
iff the type is a String subtype type; false for plain string- See Also:
Type.isStringSubtype()
-
-