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
ConstructorDescriptionModelFeatureStructure
(ICasDocument document, FeatureStructure featureStructre) Initializes a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ModelFeatureStructure> create
(ICasDocument document, List<AnnotationFS> annotations) Creates the.void
createFeatureValue
(Feature feature) Creates the feature value.void
createFeatureValueArray
(Feature feature, int size) Creates the feature value array.void
deleteFeatureValue
(Feature feature) Delete feature value.boolean
getAdapter
(Class adapter) Gets the document.Gets the structre.int
hashCode()
void
setFeatureNull
(Feature feature) Sets the feature null.void
update()
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:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
update
public void update()Update. -
equals
-
hashCode
public int hashCode()
-