Interface StrongAugmentationService
- All Known Implementing Classes:
StrongAugmentationServiceImpl
public interface StrongAugmentationService
Given a strong number, we find the augmented version in order to provide more accurate definitions and context
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionString[]Augments multiple strong numbers from a string.String[]The STEP lexicon contains H0001a, H0002b, etc.getAugmentedStrongSuffix(String strong) getRefIndexWithStrong(String strong) booleanisNonAugmented(String key) booleanisVerseInAugStrong(String reference, String strong, StrongAugmentationService.AugmentedStrongsForSearchCount arg) voidloadFromSerialization(String installFilePath) voidreadAndLoad(String augStrongFile, String installFilePath) To convert an augmented strong number to a standardised strong numbervoidupdatePassageKeyWithAugStrong(String strong, org.crosswire.jsword.passage.Key reference)
-
Method Details
-
augment
The STEP lexicon contains H0001a, H0002b, etc. where a,b are suffixes for homonyms. As a result, with a reference, we can inform the user a bit more about the specific meaning of the word- Parameters:
version- the version that anchors the referencereference- the referencekeys- the keys @return the list of returned / changed keyed
-
getAugmentedStrongSuffix
- Parameters:
strong- the strong that is being examined. The basic check is to see if the strong number finishes with a letter- Returns:
- the char if it is suffixed
-
reduce
To convert an augmented strong number to a standardised strong number- Parameters:
augmentedStrong- augmented strong- Returns:
- the normal strong number
-
augment
Augments multiple strong numbers from a string. For example H0001 H0002 H0003 may become H0001 H0002a H0003- Parameters:
version- versionverseRef- the referenceunAugmentedStrongNumbers- the unaugmented strong numbers- Returns:
- array of String
-
isNonAugmented
-
readAndLoad
-
loadFromSerialization
-
updatePassageKeyWithAugStrong
-
getRefIndexWithStrong
-
isVerseInAugStrong
boolean isVerseInAugStrong(String reference, String strong, StrongAugmentationService.AugmentedStrongsForSearchCount arg)
-