Class RsType
- java.lang.Object
-
- org.apache.uima.analysis_engine.impl.RsType
-
public class RsType extends java.lang.Object
Holds types and/or features with language specs These are expected to be sparse with respect to the complete type system
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<Feature>
EMPTY_FEATURE_LIST
(package private) RsFeats
features
(package private) boolean
isAllFeatures
(package private) boolean
isSpecified
(package private) RsLangs
languagesAllFeat
(package private) RsLangs
languagesNotAllFeat
(package private) java.lang.String
typeName
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
allFeaturesHaveSameLangs()
(package private) java.util.List<Feature>
getAllAppropriateFeatures(TypeSystem ts)
returns the Features for a type in a result spec(package private) RsFeat
getFeat(java.lang.String shortFeatName)
(package private) boolean
hasAllFeaturesExplicitly(TypeSystem ts)
(package private) boolean
subsumesLanguageInFeat(java.lang.String shortFeatName, java.lang.String lang)
-
-
-
Field Detail
-
EMPTY_FEATURE_LIST
public static final java.util.List<Feature> EMPTY_FEATURE_LIST
-
typeName
final java.lang.String typeName
-
isAllFeatures
boolean isAllFeatures
-
isSpecified
boolean isSpecified
-
languagesAllFeat
RsLangs languagesAllFeat
-
languagesNotAllFeat
RsLangs languagesNotAllFeat
-
features
RsFeats features
-
-
Constructor Detail
-
RsType
RsType(java.lang.String name)
-
RsType
RsType(RsType original)
-
-
Method Detail
-
subsumesLanguageInFeat
boolean subsumesLanguageInFeat(java.lang.String shortFeatName, java.lang.String lang)
- Parameters:
shortFeatName
-lang
-- Returns:
- true if lang subsumed by langs of the feature or of the type with all-feats specified
-
getFeat
RsFeat getFeat(java.lang.String shortFeatName)
-
getAllAppropriateFeatures
java.util.List<Feature> getAllAppropriateFeatures(TypeSystem ts)
returns the Features for a type in a result spec- Parameters:
ts
- The type system, may be null- Returns:
- list of features for a type in a result spec
-
hasAllFeaturesExplicitly
boolean hasAllFeaturesExplicitly(TypeSystem ts)
-
allFeaturesHaveSameLangs
boolean allFeaturesHaveSameLangs()
-
-