Class RsTypesMap

java.lang.Object
org.apache.uima.analysis_engine.impl.RsTypesMap
All Implemented Interfaces:
Iterable<RsType>

public class RsTypesMap extends Object implements Iterable<RsType>
This object holds the set of RsTypes for a result spec There is one instance of this per ResultSpecification_impl
  • Field Details

  • Constructor Details

    • RsTypesMap

      RsTypesMap()
    • RsTypesMap

      RsTypesMap(RsTypesMap src)
      cloning constructor - clones its arg
      Parameters:
      src -
  • Method Details

    • add

      void add(String typeName, boolean isAllFeat, String[] languages, boolean replace)
      add a type (not a type:feat)
      Parameters:
      typeName -
      isAllFeat -
      languages -
      replace -
    • add

      void add(String typeName, boolean isAllFeat, RsLangs rslangs, boolean replace)
    • add

      void add(String typeName, String shortFeatName, Object rslangs, boolean replace)
      add a feature (not a plain type) If feature exists, augments (union) its languages or replaces it
      Parameters:
      typeName -
      featName -
      languages -
      replace -
    • addLanguages

      RsLangs addLanguages(RsLangs existing, Object langs, boolean replace)
    • addLanguages

      RsLangs addLanguages(RsLangs existing, RsLangs rslangs, boolean replace)
    • remove

      void remove(String type)
      Remove a type, regardless of languages NOTE: doesn't remove type:feature entries associated with that type
      Parameters:
      type -
    • remove

      void remove(String type, String feature)
      remove a feature, regardless of languages If all features are removed, null out the rsFeats slot. If all features are removed, and no type instance, remove the type also.
      Parameters:
      typeName -
      feature - Short Name
    • getRsType

      RsType getRsType(String typeName)
    • get

      RsFeat get(String typeName, String shortFeatName)
    • nbrOfTypes

      int nbrOfTypes()
    • iterator

      public Iterator<RsType> iterator()
      Specified by:
      iterator in interface Iterable<RsType>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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