Class AbstractImportablePartSection

java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.apache.uima.taeconfigurator.editors.ui.AbstractSection
org.apache.uima.taeconfigurator.editors.ui.AbstractImportablePartSection
All Implemented Interfaces:
StandardStrings, org.eclipse.swt.widgets.Listener, org.eclipse.ui.forms.IFormPart
Direct Known Subclasses:
TypeSection

public abstract class AbstractImportablePartSection extends AbstractSection
The Class AbstractImportablePartSection.
  • Constructor Details

    • AbstractImportablePartSection

      public AbstractImportablePartSection(MultiPageEditor aEditor, org.eclipse.swt.widgets.Composite parent, String headerText, String description)
      Instantiates a new abstract importable part section.
      Parameters:
      aEditor - the a editor
      parent - the parent
      headerText - the header text
      description - the description
  • Method Details

    • isLocalItem

      protected boolean isLocalItem(org.eclipse.swt.widgets.TreeItem item)
      Checks if is local item.
      Parameters:
      item - the item
      Returns:
      true, if is local item
    • getFeatureFromTypeDescription

      public org.apache.uima.resource.metadata.FeatureDescription getFeatureFromTypeDescription(String name, org.apache.uima.resource.metadata.TypeDescription td)
      returns null if no feature by this name.
      Parameters:
      name - the name
      td - the td
      Returns:
      the feature from type description
    • getAllowedValue

      public org.apache.uima.resource.metadata.AllowedValue getAllowedValue(String value, org.apache.uima.resource.metadata.TypeDescription td)
      Gets the allowed value.
      Parameters:
      value - the value
      td - the td
      Returns:
      the allowed value
    • getLocalTypeDefinition

      protected org.apache.uima.resource.metadata.TypeDescription getLocalTypeDefinition(org.apache.uima.resource.metadata.TypeDescription td)
      Gets the local type definition.
      Parameters:
      td - the td
      Returns:
      the local type definition
    • getLocalFeatureDefinition

      protected org.apache.uima.resource.metadata.FeatureDescription getLocalFeatureDefinition(org.apache.uima.resource.metadata.TypeDescription td, org.apache.uima.resource.metadata.FeatureDescription fd)
      Gets the local feature definition.
      Parameters:
      td - the td
      fd - the fd
      Returns:
      the local feature definition
    • getLocalFeatureDefinition

      protected org.apache.uima.resource.metadata.FeatureDescription getLocalFeatureDefinition(org.apache.uima.resource.metadata.TypeDescription td, String featureName)
      Gets the local feature definition.
      Parameters:
      td - the td
      featureName - the feature name
      Returns:
      the local feature definition
    • getLocalAllowedValue

      protected org.apache.uima.resource.metadata.AllowedValue getLocalAllowedValue(org.apache.uima.resource.metadata.TypeDescription td, org.apache.uima.resource.metadata.AllowedValue unchangedAv)
      Gets the local allowed value.
      Parameters:
      td - the td
      unchangedAv - the unchanged av
      Returns:
      the local allowed value
    • getBuiltInTypeDescription

      public org.apache.uima.resource.metadata.TypeDescription getBuiltInTypeDescription(org.apache.uima.resource.metadata.TypeDescription td)
      Gets the built in type description.
      Parameters:
      td - the td
      Returns:
      the built in type description
    • isLocalType

      protected boolean isLocalType(org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is local type.
      Parameters:
      td - the td
      Returns:
      true, if is local type
    • isLocalType

      protected boolean isLocalType(String typeName)
      Checks if is local type.
      Parameters:
      typeName - the type name
      Returns:
      true, if is local type
    • isLocalFeature

      protected boolean isLocalFeature(String featureName, org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is local feature.
      Parameters:
      featureName - the feature name
      td - the td
      Returns:
      true, if is local feature
    • isLocalAllowedValue

      protected boolean isLocalAllowedValue(String avString, org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is local allowed value.
      Parameters:
      avString - the av string
      td - the td
      Returns:
      true, if is local allowed value
    • isImportedType

      public boolean isImportedType(String typeName)
      Checks if is imported type.
      Parameters:
      typeName - the type name
      Returns:
      true, if is imported type
    • isImportedType

      protected boolean isImportedType(org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is imported type.
      Parameters:
      td - the td
      Returns:
      true, if is imported type
    • isImportedFeature

      protected boolean isImportedFeature(String name, org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is imported feature.
      Parameters:
      name - the name
      td - the td
      Returns:
      true, if is imported feature
    • isImportedAllowedValue

      protected boolean isImportedAllowedValue(org.apache.uima.resource.metadata.TypeDescription td, org.apache.uima.resource.metadata.AllowedValue av)
      Checks if is imported allowed value.
      Parameters:
      td - the td
      av - the av
      Returns:
      true, if is imported allowed value
    • isBuiltInType

      protected boolean isBuiltInType(org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is built in type.
      Parameters:
      td - the td
      Returns:
      true, if is built in type
    • isBuiltInType

      protected boolean isBuiltInType(String typeName)
      Checks if is built in type.
      Parameters:
      typeName - the type name
      Returns:
      true, if is built in type
    • isBuiltInFeature

      protected boolean isBuiltInFeature(String name, org.apache.uima.resource.metadata.TypeDescription td)
      Checks if is built in feature.
      Parameters:
      name - the name
      td - the td
      Returns:
      true, if is built in feature