Package org.apache.uima.caseditor.editor
Class ModelFeatureStructure
java.lang.Object
org.apache.uima.caseditor.editor.ModelFeatureStructure
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
TODO: set feature value to null delete feature value structure create feature value structure.
-
Constructor Summary
ConstructorsConstructorDescriptionModelFeatureStructure(ICasDocument document, FeatureStructure featureStructre) Initializes a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ModelFeatureStructure>create(ICasDocument document, List<AnnotationFS> annotations) Creates the.voidcreateFeatureValue(Feature feature) Creates the feature value.voidcreateFeatureValueArray(Feature feature, int size) Creates the feature value array.voiddeleteFeatureValue(Feature feature) Delete feature value.booleangetAdapter(Class adapter) Gets the document.Gets the structre.inthashCode()voidsetFeatureNull(Feature feature) Sets the feature null.voidupdate()Update.
-
Constructor Details
-
ModelFeatureStructure
Initializes a new instance.- Parameters:
document- the documentfeatureStructre- the feature structre
-
-
Method Details
-
getDocument
Gets the document.- Returns:
- the document
-
getStructre
Gets the structre.- Returns:
- the structre
-
setFeatureNull
Sets the feature null.- Parameters:
feature- the new feature null
-
deleteFeatureValue
Delete feature value.- Parameters:
feature- the feature
-
createFeatureValue
Creates the feature value.- Parameters:
feature- the feature
-
createFeatureValueArray
Creates the feature value array.- Parameters:
feature- the featuresize- the size
-
create
public static List<ModelFeatureStructure> create(ICasDocument document, List<AnnotationFS> annotations) Creates the.- Parameters:
document- the documentannotations- the annotations- Returns:
- the list
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-
update
public void update()Update. -
equals
-
hashCode
public int hashCode()
-