Interface AlignedTypesDatabaseImpl

All Known Implementing Classes:
AlignedTypesDatabaseTSTImpl

public interface AlignedTypesDatabaseImpl
  • Method Details

    • addUserTier

      void addUserTier(String tierName)
      Adds a user tier to the list of tiers in the database Tier data type is assumed to be TierString
      Parameters:
      tierName -
    • addAlignedTypes

      void addAlignedTypes(Map<String,String> alignedTypes)
      Add aligned types to the database. This method will add each type as a key in the database and setup tier links as necessary.
      Parameters:
      alignedTypes - a map of tierName -> types which will be added to the database
    • addAlignedTypes

      void addAlignedTypes(String[] tierNames, String[] types)
    • addAlignment

      void addAlignment(String tierName, String type, String alignedTierName, String alignedType)
    • removeAlignedTypes

      boolean removeAlignedTypes(Map<String,String> alignedTypes)
    • removeAlignedTypes

      boolean removeAlignedTypes(String[] tierNames, String[] types)
    • alignedTypesForTier

      Map<String,String[]> alignedTypesForTier(String tierName, String type)
      Return a set of aligned types given a tier name and type that exists for that tier.
      Parameters:
      tierName -
      type -
      Returns:
      a map of aligned tier values for the given tier and type
    • alignedTypesForTier

      Map<String,String[]> alignedTypesForTier(String tierName, String type, List<String> tierList)
      Return a set of aligned types given a tier name and type that exists for that tier.
      Parameters:
      tierName -
      type -
      tierList -
      Returns:
      a map of aligned tier values for the given tier and type
    • tierNames

      Collection<String> tierNames()
    • getTierInfo

      Collection<TierInfo> getTierInfo()
    • typesForTier

      Collection<String> typesForTier(String keyTier)
      Return all types for given keyTier
      Parameters:
      keyTier -
      Returns:
      all types which appear for the given keyTier
    • typeExists

      boolean typeExists(String type)
    • removeType

      boolean removeType(String type)
    • typeExistsInTier

      boolean typeExistsInTier(String type, String tier)
    • alignmentExists

      boolean alignmentExists(String tierName, String tierVal, String linkedTier, String linkedVal)
      Is there a link between the two tier values
      Parameters:
      tierName -
      tierVal -
      linkedTier -
      linkedVal -
    • removeAlignment

      boolean removeAlignment(String tierName, String type, String alignedTierName, String alignedType)
      Remove the link between two tier values. If all links for the tier are removed, the type is also removed for that tier
      Parameters:
      tierName -
      type -
      alignedTierName -
      alignedType -
      Returns:
      true if link was removed
    • hasAlignedTypes

      boolean hasAlignedTypes(Map<String,String> alignedTypes)
    • hasAlignedTypes

      boolean hasAlignedTypes(String[] tierNames, String[] rowVals)
    • addDatabaseListener

      void addDatabaseListener(AlignedTypesDatabaseListener listener)
    • removeDatabaseListener

      void removeDatabaseListener(AlignedTypesDatabaseListener listener)
    • typesWithPrefix

      TypeIterator typesWithPrefix(String prefix, boolean caseSensitive, Predicate<String> filter)
    • typesContaining

      TypeIterator typesContaining(String infix, boolean caseSensitive, Predicate<String> filter)
    • typesWithSuffix

      TypeIterator typesWithSuffix(String suffix, boolean caseSensitive, Predicate<String> filter)
    • typeIterator

      TypeIterator typeIterator(Predicate<String> filter)