Class RsTypesMap

  • All Implemented Interfaces:
    java.lang.Iterable<RsType>

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

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​RsType> types  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(java.lang.String typeName, boolean isAllFeat, java.lang.String[] languages, boolean replace)
      add a type (not a type:feat)
      (package private) void add​(java.lang.String typeName, boolean isAllFeat, RsLangs rslangs, boolean replace)  
      (package private) void add​(java.lang.String typeName, java.lang.String shortFeatName, java.lang.Object rslangs, boolean replace)
      add a feature (not a plain type) If feature exists, augments (union) its languages or replaces it
      (package private) RsLangs addLanguages​(RsLangs existing, java.lang.Object langs, boolean replace)  
      (package private) RsLangs addLanguages​(RsLangs existing, RsLangs rslangs, boolean replace)  
      boolean equals​(java.lang.Object obj)  
      (package private) RsFeat get​(java.lang.String typeName, java.lang.String shortFeatName)  
      (package private) RsType getRsType​(java.lang.String typeName)  
      int hashCode()  
      java.util.Iterator<RsType> iterator()  
      (package private) int nbrOfTypes()  
      (package private) void remove​(java.lang.String type)
      Remove a type, regardless of languages NOTE: doesn't remove type:feature entries associated with that type
      (package private) void remove​(java.lang.String type, java.lang.String feature)
      remove a feature, regardless of languages If all features are removed, null out the rsFeats slot.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • types

        private final java.util.Map<java.lang.String,​RsType> types
    • Constructor Detail

      • RsTypesMap

        RsTypesMap()
      • RsTypesMap

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

      • add

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

        void add​(java.lang.String typeName,
                 boolean isAllFeat,
                 RsLangs rslangs,
                 boolean replace)
      • add

        void add​(java.lang.String typeName,
                 java.lang.String shortFeatName,
                 java.lang.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,
                             java.lang.Object langs,
                             boolean replace)
      • remove

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

        void remove​(java.lang.String type,
                    java.lang.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​(java.lang.String typeName)
      • get

        RsFeat get​(java.lang.String typeName,
                   java.lang.String shortFeatName)
      • nbrOfTypes

        int nbrOfTypes()
      • iterator

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object