Class ModelFeatureStructure

java.lang.Object
org.apache.uima.caseditor.editor.ModelFeatureStructure
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class ModelFeatureStructure extends Object implements org.eclipse.core.runtime.IAdaptable
TODO: set feature value to null delete feature value structure create feature value structure.
  • Constructor Details

    • ModelFeatureStructure

      public ModelFeatureStructure(ICasDocument document, FeatureStructure featureStructre)
      Initializes a new instance.
      Parameters:
      document - the document
      featureStructre - the feature structre
  • Method Details

    • getDocument

      public ICasDocument getDocument()
      Gets the document.
      Returns:
      the document
    • getStructre

      public FeatureStructure getStructre()
      Gets the structre.
      Returns:
      the structre
    • setFeatureNull

      public void setFeatureNull(Feature feature)
      Sets the feature null.
      Parameters:
      feature - the new feature null
    • deleteFeatureValue

      public void deleteFeatureValue(Feature feature)
      Delete feature value.
      Parameters:
      feature - the feature
    • createFeatureValue

      public void createFeatureValue(Feature feature)
      Creates the feature value.
      Parameters:
      feature - the feature
    • createFeatureValueArray

      public void createFeatureValueArray(Feature feature, int size)
      Creates the feature value array.
      Parameters:
      feature - the feature
      size - the size
    • create

      public static List<ModelFeatureStructure> create(ICasDocument document, List<AnnotationFS> annotations)
      Creates the.
      Parameters:
      document - the document
      annotations - the annotations
      Returns:
      the list
    • getAdapter

      public Object getAdapter(Class adapter)
      Specified by:
      getAdapter in interface org.eclipse.core.runtime.IAdaptable
    • update

      public void update()
      Update.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object