Uses of Interface
org.apache.uima.cas.Feature
-
Packages that use Feature Package Description org.apache.uima.analysis_engine.impl org.apache.uima.cas Common Analysis System(CAS) Interfacesorg.apache.uima.cas.admin org.apache.uima.cas.impl Implementation and Low-Level API for the CAS Interfaces.org.apache.uima.collection.impl.cpm.utils org.apache.uima.jcas Interfaces for accessing the JCAS.org.apache.uima.jcas.cas JCAS model for built-in CAS typesorg.apache.uima.jcas.impl Provides the classes that support the Java Cas Model (JCM).org.apache.uima.jcas.tcas org.apache.uima.tools.cvd org.apache.uima.tools.viewer org.apache.uima.util 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 Feature Modifier and Type Field Description static java.util.List<Feature>
RsType. EMPTY_FEATURE_LIST
Methods in org.apache.uima.analysis_engine.impl that return types with arguments of type Feature Modifier and Type Method Description (package private) java.util.List<Feature>
RsType. 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 Feature Modifier and Type Method Description Feature
CAS. getBeginFeature()
Get the feature object for the annotation begin feature.Feature
CAS. getEndFeature()
Get the feature object for the annotation end feature.Feature
FeaturePath. getFeature(int i)
Get feature at position.Feature
Type. getFeatureByBaseName(java.lang.String featureName)
Retrieve a feature for this type.Feature
TypeSystem. getFeatureByFullName(java.lang.String featureName)
Get a feature object for a given name.Methods in org.apache.uima.cas that return types with arguments of type Feature Modifier and Type Method Description java.util.Vector<Feature>
Type. getAppropriateFeatures()
Deprecated.UsegetFeatures()
instead.java.util.List<Feature>
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).java.util.Iterator<Feature>
TypeSystem. getFeatures()
Get a list of features, in no particular order.Methods in org.apache.uima.cas with parameters of type Feature Modifier and Type Method Description void
FeaturePath. addFeature(Feature feat)
Add a new feature at the end of the path.boolean
FeatureStructure. getBooleanValue(Feature feat)
Get the boolean value of a feature.byte
FeatureStructure. getByteValue(Feature feat)
Get the byte value of a feature.double
FeatureStructure. getDoubleValue(Feature feat)
Get the double value of a feature.FeatureStructure
FeatureStructure. getFeatureValue(Feature feat)
Get a feature value.java.lang.String
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.float
FeatureStructure. getFloatValue(Feature feat)
Get the float value of a feature.int
FeatureStructure. getIntValue(Feature feat)
Get the int value of a feature.long
FeatureStructure. getLongValue(Feature feat)
Get the long value of a feature.short
FeatureStructure. getShortValue(Feature feat)
Get the short value of a feature.java.lang.String
FeatureStructure. getStringValue(Feature f)
Get the string value under a feature.void
FeatureStructure. setBooleanValue(Feature feat, boolean i)
Set the boolean value of a feature.void
FeatureStructure. setByteValue(Feature feat, byte i)
Set the byte (8 bit) value of a feature.void
FeatureStructure. setDoubleValue(Feature feat, double i)
Set the double value of a feature.void
FeatureStructure. setFeatureValue(Feature feat, FeatureStructure fs)
Set a feature value to another FS.void
FeatureStructure. setFeatureValueFromString(Feature feat, java.lang.String s)
Sets the value of a feature from a string input if the feature type is one of the primitive types.void
FeatureStructure. setFloatValue(Feature feat, float f)
Set the float value of a feature.void
FeatureStructure. setIntValue(Feature feat, int i)
Set the int value of a feature.void
FeatureStructure. setLongValue(Feature feat, long i)
Set the long (64 bit) value of a feature.void
FeatureStructure. setShortValue(Feature feat, short i)
Set the short (16 bit) value of a feature.void
FeatureStructure. setStringValue(Feature feat, java.lang.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 Feature Modifier and Type Method Description Feature
TypeSystemMgr. addFeature(java.lang.String featureName, Type domainType, Type rangeType)
Add an feature to the type system.Feature
TypeSystemMgr. addFeature(java.lang.String featureName, Type domainType, Type rangeType, boolean multipleReferencesAllowed)
Add an feature to the type system.Feature
FSIndexComparator. getKeyFeature(int key)
Get the feature for this key.Methods in org.apache.uima.cas.admin with parameters of type Feature Modifier and Type Method Description int
FSIndexComparator. addKey(Feature feat, int compareKey)
Add a new key. -
Uses of Feature in org.apache.uima.cas.impl
Classes in org.apache.uima.cas.impl that implement Feature Modifier and Type Class Description class
FeatureImpl
The implementation of features in the type system.class
FeatureImpl_jcas_only
The implementation of jcas-only features in the type system.Methods in org.apache.uima.cas.impl that return Feature Modifier and Type Method Description Feature
TypeSystemImpl. addFeature(java.lang.String featureName, Type domainType, Type rangeType)
Feature
TypeSystemImpl. addFeature(java.lang.String shortFeatName, Type domainType, Type rangeType, boolean multipleReferencesAllowed)
Feature
CASImpl. getBeginFeature()
Feature
CASImpl. getEndFeature()
Feature
TypeImpl. getFeature(java.lang.String featureName)
Deprecated.use getFeatureByBaseName insteadFeature
TypeSystemImpl. getFeature(java.lang.String featureName)
Deprecated.Feature
LowLevelTypeSystem. ll_getFeatureForCode(int featureCode)
Get a feature object for a given code.Feature
TypeSystemImpl. ll_getFeatureForCode(int featureCode)
Methods in org.apache.uima.cas.impl that return types with arguments of type Feature Modifier and Type Method Description java.util.Vector<Feature>
TypeImpl. getAppropriateFeatures()
Deprecated.java.util.List<Feature>
TypeImpl. getFeatures()
guaranteed to be non-null, but might be empty listjava.util.Iterator<Feature>
TypeSystemImpl. getFeatures()
java.util.Vector<Feature>
TypeSystemImpl. getIntroFeatures(Type type)
java.util.Iterator<Feature>
TypeImpl. iterator()
Methods in org.apache.uima.cas.impl with parameters of type Feature Modifier and Type Method Description private void
FeatureStructureImplC. _Check_feature_defined_for_this_type(Feature feat)
Validation checkingprivate void
FeatureStructureImplC. _check_feature_range_is_FeatureStructure(Feature feat, FeatureStructureImplC fs)
void
FeaturePathImpl. addFeature(Feature feat)
int
FSIndexComparatorImpl. addKey(Feature feat, int compareKey)
private void
FeatureStructureImplC. checkFeatRange(Feature feat, java.lang.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.void
CASImpl. checkTypingConditions(Type domType, Type ranType, Feature feat)
Check the range is appropriate for this type/feature.int
FeatureImpl. compareTo(Feature o)
This should work across different type systems, for instance when using filtered serializationprivate void
FeatureStructureImplC. featureValueValidation(Feature feat, java.lang.Object v)
boolean
FeatureStructureImplC. 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.byte
FeatureStructureImplC. getByteValue(Feature feat)
double
FeatureStructureImplC. getDoubleValue(Feature feat)
TOP
FeatureStructureImplC. getFeatureValue(Feature feat)
java.lang.String
FeatureStructureImplC. getFeatureValueAsString(Feature feat)
float
FeatureStructureImplC. getFloatValue(Feature feat)
int
FeatureStructureImplC. getIntValue(Feature feat)
long
FeatureStructureImplC. getLongValue(Feature feat)
short
FeatureStructureImplC. getShortValue(Feature feat)
java.lang.String
FeatureStructureImplC. getStringValue(Feature feat)
boolean
TypeImpl. isAppropriateFeature(Feature feature)
int
LowLevelTypeSystem. ll_getCodeForFeature(Feature feature)
Get the code for a given feature object.int
TypeSystemImpl. ll_getCodeForFeature(Feature feature)
private void
CasCompare. mismatchFs(TOP fs1, TOP fs2, Feature fi, Feature fi2)
FeatureImpl
TypeSystemImpl. refreshFeature(Feature f)
void
FeatureStructureImplC. setBooleanValue(Feature feat, boolean v)
void
FeatureStructureImplC. setByteValue(Feature feat, byte v)
void
FeatureStructureImplC. setDoubleValue(Feature feat, double v)
void
FeatureStructureImplC. setFeatureValue(Feature feat, FeatureStructure v)
void
FeatureStructureImplC. setFeatureValueFromString(Feature feat, java.lang.String s)
void
FeatureStructureImplC. setFloatValue(Feature feat, float v)
void
FeatureStructureImplC. setIntValue(Feature feat, int v)
void
FeatureStructureImplC. setLongValue(Feature feat, long v)
void
FeatureStructureImplC. setShortValue(Feature feat, short v)
void
FeatureStructureImplC. setStringValue(Feature feat, java.lang.String v)
java.lang.Runnable
CasCompare. sort_dedup_FSArray(TOP fs, Feature feat)
This is an optional pre-compare operation.private void
FeatureStructureImplC. subStringRangeCheck(Feature feat, java.lang.String v)
Method parameters in org.apache.uima.cas.impl with type arguments of type Feature Modifier and Type Method Description void
CasCompare. applyToTypeFeature(java.lang.String typeName, java.lang.String featureBaseName, Consumer2<TOP,Feature> c)
Before comparing, you can adjust specific features of specific types, arbitrarily.private void
CasCompare. applyToTypeFeature_inner(CASImpl cas, java.lang.String typeName, java.lang.String featureBaseName, Consumer2<TOP,Feature> c)
private static void
DebugFSLogicalStructure. fillFeatures(DebugNameValuePair[] result, int startOffset, FeatureStructure fs, java.util.List<Feature> features)
java.util.List<java.lang.Runnable>
CasCompare. type_feature_to_runnable(java.lang.String typeName, java.lang.String featureBaseName, java.util.function.BiFunction<TOP,Feature,java.lang.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.private java.util.List<java.lang.Runnable>
CasCompare. type_feature_to_runnable(CASImpl cas, java.lang.String typeName, java.lang.String featureBaseName, java.util.function.BiFunction<TOP,Feature,java.lang.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 Feature Modifier and Type Method Description static int
CPMUtils. getFeatureAsInt(CAS aCas, Feature aFeature, java.lang.String aName)
Gets the feature as int.static java.lang.String
CPMUtils. getFeatureAsString(CAS aCas, Feature aFeature, java.lang.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 Feature Modifier and Type Method Description Feature
JCas. getRequiredFeature(Type t, java.lang.String s)
default Feature
JCas. getRequiredFeatureDE(Type t, java.lang.String s, java.lang.String rangeName, boolean featOkTst)
Deprecated. -
Uses of Feature in org.apache.uima.jcas.cas
Fields in org.apache.uima.jcas.cas declared as Feature Modifier and Type Field Description (package private) Feature
AnnotationBase_Type. casFeat_sofa
Deprecated.Methods in org.apache.uima.jcas.cas with parameters of type Feature Modifier and Type Method Description void
AnnotationBase. setFeatureValue(Feature feat, FeatureStructure v)
void
Sofa. setFeatureValue(Feature feat, FeatureStructure fs)
void
Sofa. setIntValue(Feature feat, java.lang.Integer val)
void
Sofa. setStringValue(Feature feat, java.lang.String val)
-
Uses of Feature in org.apache.uima.jcas.impl
Methods in org.apache.uima.jcas.impl that return Feature Modifier and Type Method Description Feature
JCasImpl. getRequiredFeature(Type t, java.lang.String s)
-
Uses of Feature in org.apache.uima.jcas.tcas
Fields in org.apache.uima.jcas.tcas declared as Feature Modifier and Type Field Description (package private) Feature
Annotation_Type. casFeat_begin
Deprecated.(package private) Feature
Annotation_Type. casFeat_end
Deprecated. -
Uses of Feature in org.apache.uima.tools.cvd
Fields in org.apache.uima.tools.cvd declared as Feature Modifier and Type Field Description private Feature
FSNode. feat
The feat.Constructors in org.apache.uima.tools.cvd with parameters of type Feature Constructor Description FSNode(FSTreeModel fSTreeModel, int nodeClass, java.lang.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 Feature Modifier and Type Method Description private java.lang.String
CasAnnotationViewer. getFeatureValueInString(FeatureStructure aFS, Feature feature)
Get feature value in string, if value is not another annotation and not an array of annotations.private boolean
CasAnnotationViewer. processOneFeature(javax.swing.text.StyledDocument doc, Annotation annotation, Feature feature, boolean firstFeature)
Examine one feature of the given annotation and create the feature-related controls.private boolean
CasAnnotationViewer. processOneFeatureValue(javax.swing.text.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 Feature Modifier and Type Method Description static FeatureDescription
TypeSystemUtil. feature2FeatureDescription(Feature aFeature)
Convert aFeature
to an equivalentFeatureDescription
.
-