Package ca.phon.alignedTypesDatabase
Interface AlignedTypesDatabaseImpl
- All Known Implementing Classes:
AlignedTypesDatabaseTSTImpl
public interface AlignedTypesDatabaseImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlignedTypes
(String[] tierNames, String[] types) void
addAlignedTypes
(Map<String, String> alignedTypes) Add aligned types to the database.void
addAlignment
(String tierName, String type, String alignedTierName, String alignedType) void
void
addUserTier
(String tierName) Adds a user tier to the list of tiers in the database Tier data type is assumed to be TierStringalignedTypesForTier
(String tierName, String type) Return a set of aligned types given a tier name and type that exists for that tier.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.boolean
alignmentExists
(String tierName, String tierVal, String linkedTier, String linkedVal) Is there a link between the two tier valuesboolean
hasAlignedTypes
(String[] tierNames, String[] rowVals) boolean
hasAlignedTypes
(Map<String, String> alignedTypes) boolean
removeAlignedTypes
(String[] tierNames, String[] types) boolean
removeAlignedTypes
(Map<String, String> alignedTypes) boolean
removeAlignment
(String tierName, String type, String alignedTierName, String alignedType) Remove the link between two tier values.void
boolean
removeType
(String type) boolean
typeExists
(String type) boolean
typeExistsInTier
(String type, String tier) typeIterator
(Predicate<String> filter) typesContaining
(String infix, boolean caseSensitive, Predicate<String> filter) typesForTier
(String keyTier) Return all types for given keyTiertypesWithPrefix
(String prefix, boolean caseSensitive, Predicate<String> filter) typesWithSuffix
(String suffix, boolean caseSensitive, Predicate<String> filter)
-
Method Details
-
addUserTier
Adds a user tier to the list of tiers in the database Tier data type is assumed to be TierString- Parameters:
tierName
-
-
addAlignedTypes
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
-
addAlignment
-
removeAlignedTypes
-
removeAlignedTypes
-
alignedTypesForTier
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
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
Return all types for given keyTier- Parameters:
keyTier
-- Returns:
- all types which appear for the given keyTier
-
typeExists
-
removeType
-
typeExistsInTier
-
alignmentExists
Is there a link between the two tier values- Parameters:
tierName
-tierVal
-linkedTier
-linkedVal
-
-
removeAlignment
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
-
hasAlignedTypes
-
addDatabaseListener
-
removeDatabaseListener
-
typesWithPrefix
-
typesContaining
-
typesWithSuffix
-
typeIterator
-