Uses of Interface
org.apache.uima.cas.Feature
Packages that use Feature
Package
Description
Common Analysis System(CAS) Interfaces
Implementation and Low-Level API for the CAS Interfaces.
Interfaces for accessing the JCAS.
JCAS model for built-in CAS types
Provides the classes that support the Java Cas Model (JCM).
Utility classes and interfaces used by UIMA components.
-
Uses of Feature in org.apache.uima.analysis_engine.impl
Fields in org.apache.uima.analysis_engine.impl with type parameters of type FeatureMethods in org.apache.uima.analysis_engine.impl that return types with arguments of type FeatureModifier and TypeMethodDescriptionRsType.getAllAppropriateFeatures(TypeSystem ts) returns the Features for a type in a result spec -
Uses of Feature in org.apache.uima.cas
Methods in org.apache.uima.cas that return FeatureModifier and TypeMethodDescriptionCAS.getBeginFeature()Get the feature object for the annotation begin feature.CAS.getEndFeature()Get the feature object for the annotation end feature.FeaturePath.getFeature(int i) Get feature at position.Type.getFeatureByBaseName(String featureName) Retrieve a feature for this type.TypeSystem.getFeatureByFullName(String featureName) Get a feature object for a given name.Methods in org.apache.uima.cas that return types with arguments of type FeatureModifier and TypeMethodDescriptionType.getAppropriateFeatures()Deprecated.Type.getFeatures()Get a vector of the features for which this type is a subtype of the features' domain (i.e., inherited features are also returned).TypeSystem.getFeatures()Get a list of features, in no particular order.Methods in org.apache.uima.cas with parameters of type FeatureModifier and TypeMethodDescriptionvoidFeaturePath.addFeature(Feature feat) Add a new feature at the end of the path.booleanFeatureStructure.getBooleanValue(Feature feat) Get the boolean value of a feature.byteFeatureStructure.getByteValue(Feature feat) Get the byte value of a feature.doubleFeatureStructure.getDoubleValue(Feature feat) Get the double value of a feature.FeatureStructure.getFeatureValue(Feature feat) Get a feature value.FeatureStructure.getFeatureValueAsString(Feature feat) Get the value of the feature as a string if the type of the feature is one of the primitive type.floatFeatureStructure.getFloatValue(Feature feat) Get the float value of a feature.intFeatureStructure.getIntValue(Feature feat) Get the int value of a feature.longFeatureStructure.getLongValue(Feature feat) Get the long value of a feature.shortFeatureStructure.getShortValue(Feature feat) Get the short value of a feature.FeatureStructure.getStringValue(Feature f) Get the string value under a feature.voidFeatureStructure.setBooleanValue(Feature feat, boolean i) Set the boolean value of a feature.voidFeatureStructure.setByteValue(Feature feat, byte i) Set the byte (8 bit) value of a feature.voidFeatureStructure.setDoubleValue(Feature feat, double i) Set the double value of a feature.voidFeatureStructure.setFeatureValue(Feature feat, FeatureStructure fs) Set a feature value to another FS.voidFeatureStructure.setFeatureValueFromString(Feature feat, String s) Sets the value of a feature from a string input if the feature type is one of the primitive types.voidFeatureStructure.setFloatValue(Feature feat, float f) Set the float value of a feature.voidFeatureStructure.setIntValue(Feature feat, int i) Set the int value of a feature.voidFeatureStructure.setLongValue(Feature feat, long i) Set the long (64 bit) value of a feature.voidFeatureStructure.setShortValue(Feature feat, short i) Set the short (16 bit) value of a feature.voidFeatureStructure.setStringValue(Feature feat, String s) Set the string value of a feature. -
Uses of Feature in org.apache.uima.cas.admin
Methods in org.apache.uima.cas.admin that return FeatureModifier and TypeMethodDescriptionTypeSystemMgr.addFeature(String featureName, Type domainType, Type rangeType) Add an feature to the type system.TypeSystemMgr.addFeature(String featureName, Type domainType, Type rangeType, boolean multipleReferencesAllowed) Add an feature to the type system.FSIndexComparator.getKeyFeature(int key) Get the feature for this key.Methods in org.apache.uima.cas.admin with parameters of type Feature -
Uses of Feature in org.apache.uima.cas.impl
Classes in org.apache.uima.cas.impl that implement FeatureModifier and TypeClassDescriptionclassThe implementation of features in the type system.classThe implementation of jcas-only features in the type system.Methods in org.apache.uima.cas.impl that return FeatureModifier and TypeMethodDescriptionTypeSystemImpl.addFeature(String featureName, Type domainType, Type rangeType) TypeSystemImpl.addFeature(String shortFeatName, Type domainType, Type rangeType, boolean multipleReferencesAllowed) CASImpl.getBeginFeature()CASImpl.getEndFeature()TypeImpl.getFeature(String featureName) Deprecated.use getFeatureByBaseName insteadTypeSystemImpl.getFeature(String featureName) Deprecated.LowLevelTypeSystem.ll_getFeatureForCode(int featureCode) Get a feature object for a given code.TypeSystemImpl.ll_getFeatureForCode(int featureCode) Methods in org.apache.uima.cas.impl that return types with arguments of type FeatureModifier and TypeMethodDescriptionTypeImpl.getAppropriateFeatures()Deprecated.TypeImpl.getFeatures()guaranteed to be non-null, but might be empty listTypeSystemImpl.getFeatures()TypeSystemImpl.getIntroFeatures(Type type) TypeImpl.iterator()Methods in org.apache.uima.cas.impl with parameters of type FeatureModifier and TypeMethodDescriptionprivate voidFeatureStructureImplC._Check_feature_defined_for_this_type(Feature feat) Validation checkingprivate voidFeatureStructureImplC._check_feature_range_is_FeatureStructure(Feature feat, FeatureStructureImplC fs) voidFeaturePathImpl.addFeature(Feature feat) intprivate voidFeatureStructureImplC.checkFeatRange(Feature feat, String shortRangeName) S E T T E R S 4 levels of checking: - check feature for validity (fv) -- this is skipped with feature comes from fs type info (internal calls) - check for setting something which could corrupt indexes (ci) -- this is skipped when the caller knows --- the FS is not in the index, perhaps because they just created it -- skipped when the range is not a valid index key - check for needing to log (journal) setting (jrnl) -- this is skipped when the caller knows --- no journalling is enabled or --- the FS is a new (above-the-line) FS - check the value is suitable -- this can be skipped if Java is doing the checking (via the type of the argument) -- done for string subtypes and Feature References --- skipped if the caller knows the value is OK (e.g., it is copying an existing FS) The jrnl and ic checks require the FeatureImpl.final voidCASImpl.checkTypingConditions(Type domType, Type ranType, Feature feat) Check the range is appropriate for this type/feature.intThis should work across different type systems, for instance when using filtered serializationprivate voidFeatureStructureImplC.featureValueValidation(Feature feat, Object v) booleanFeatureStructureImplC.getBooleanValue(Feature feat) G E T T E R S (The array getters are part of the Classes for the built-in arrays, here are only the non-array ones) getXyzValue(Feature feat) - this is the standard from V2 plain API - it does validity checking (normally) that the feature belongs to the type getXyzValueNc(FeatureImpl feat) - skips the validity checking that the feature belongs to the type.byteFeatureStructureImplC.getByteValue(Feature feat) doubleFeatureStructureImplC.getDoubleValue(Feature feat) FeatureStructureImplC.getFeatureValue(Feature feat) FeatureStructureImplC.getFeatureValueAsString(Feature feat) floatFeatureStructureImplC.getFloatValue(Feature feat) intFeatureStructureImplC.getIntValue(Feature feat) longFeatureStructureImplC.getLongValue(Feature feat) shortFeatureStructureImplC.getShortValue(Feature feat) FeatureStructureImplC.getStringValue(Feature feat) booleanTypeImpl.isAppropriateFeature(Feature feature) intLowLevelTypeSystem.ll_getCodeForFeature(Feature feature) Get the code for a given feature object.intTypeSystemImpl.ll_getCodeForFeature(Feature feature) private voidCasCompare.mismatchFs(TOP fs1, TOP fs2, Feature fi, Feature fi2) TypeSystemImpl.refreshFeature(Feature f) voidFeatureStructureImplC.setBooleanValue(Feature feat, boolean v) voidFeatureStructureImplC.setByteValue(Feature feat, byte v) voidFeatureStructureImplC.setDoubleValue(Feature feat, double v) voidFeatureStructureImplC.setFeatureValue(Feature feat, FeatureStructure v) voidFeatureStructureImplC.setFeatureValueFromString(Feature feat, String s) voidFeatureStructureImplC.setFloatValue(Feature feat, float v) voidFeatureStructureImplC.setIntValue(Feature feat, int v) voidFeatureStructureImplC.setLongValue(Feature feat, long v) voidFeatureStructureImplC.setShortValue(Feature feat, short v) voidFeatureStructureImplC.setStringValue(Feature feat, String v) CasCompare.sort_dedup_FSArray(TOP fs, Feature feat) This is an optional pre-compare operation.private voidFeatureStructureImplC.subStringRangeCheck(Feature feat, String v) Method parameters in org.apache.uima.cas.impl with type arguments of type FeatureModifier and TypeMethodDescriptionvoidBefore comparing, you can adjust specific features of specific types, arbitrarily.private voidCasCompare.applyToTypeFeature_inner(CASImpl cas, String typeName, String featureBaseName, Consumer2<TOP, Feature> c) private static voidDebugFSLogicalStructure.fillFeatures(DebugNameValuePair[] result, int startOffset, FeatureStructure fs, List<Feature> features) CasCompare.type_feature_to_runnable(String typeName, String featureBaseName, BiFunction<TOP, Feature, Runnable> c) Before comparing, you can create pending values for specific types / features, and return a list of runnables, which when run, plug in those pending values.CasCompare.type_feature_to_runnable(CASImpl cas, String typeName, String featureBaseName, BiFunction<TOP, Feature, Runnable> c) -
Uses of Feature in org.apache.uima.collection.impl.cpm.utils
Methods in org.apache.uima.collection.impl.cpm.utils with parameters of type FeatureModifier and TypeMethodDescriptionstatic intCPMUtils.getFeatureAsInt(CAS aCas, Feature aFeature, String aName) Gets the feature as int.static StringCPMUtils.getFeatureAsString(CAS aCas, Feature aFeature, String aName) Returns a value associated with a given feature. -
Uses of Feature in org.apache.uima.jcas
Methods in org.apache.uima.jcas that return FeatureModifier and TypeMethodDescriptionJCas.getRequiredFeature(Type t, String s) default FeatureJCas.getRequiredFeatureDE(Type t, String s, String rangeName, boolean featOkTst) Deprecated. -
Uses of Feature in org.apache.uima.jcas.cas
Fields in org.apache.uima.jcas.cas declared as FeatureModifier and TypeFieldDescription(package private) final FeatureAnnotationBase_Type.casFeat_sofaDeprecated.Methods in org.apache.uima.jcas.cas with parameters of type FeatureModifier and TypeMethodDescriptionvoidAnnotationBase.setFeatureValue(Feature feat, FeatureStructure v) voidSofa.setFeatureValue(Feature feat, FeatureStructure fs) voidSofa.setIntValue(Feature feat, Integer val) voidSofa.setStringValue(Feature feat, String val) -
Uses of Feature in org.apache.uima.jcas.impl
Methods in org.apache.uima.jcas.impl that return Feature -
Uses of Feature in org.apache.uima.jcas.tcas
Fields in org.apache.uima.jcas.tcas declared as FeatureModifier and TypeFieldDescription(package private) final FeatureAnnotation_Type.casFeat_beginDeprecated.(package private) final FeatureAnnotation_Type.casFeat_endDeprecated. -
Uses of Feature in org.apache.uima.tools.cvd
Fields in org.apache.uima.tools.cvd declared as FeatureConstructors in org.apache.uima.tools.cvd with parameters of type FeatureModifierConstructorDescription(package private)FSNode(FSTreeModel fSTreeModel, int nodeClass, Object fsOrString, long intOrLongLikeValue, Feature feat) Instantiates a new FS node. -
Uses of Feature in org.apache.uima.tools.viewer
Methods in org.apache.uima.tools.viewer with parameters of type FeatureModifier and TypeMethodDescriptionprivate StringCasAnnotationViewer.getFeatureValueInString(FeatureStructure aFS, Feature feature) Get feature value in string, if value is not another annotation and not an array of annotations.private booleanCasAnnotationViewer.processOneFeature(StyledDocument doc, Annotation annotation, Feature feature, boolean firstFeature) Examine one feature of the given annotation and create the feature-related controls.private booleanCasAnnotationViewer.processOneFeatureValue(StyledDocument doc, Annotation annotation, Feature feature) Examine one feature of the given annotation and create the feature-value-related controls. -
Uses of Feature in org.apache.uima.util
Methods in org.apache.uima.util with parameters of type FeatureModifier and TypeMethodDescriptionstatic FeatureDescriptionTypeSystemUtil.feature2FeatureDescription(Feature aFeature) Convert aFeatureto an equivalentFeatureDescription.
getFeatures()instead.