|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.ConfigEntryType
org.crosswire.jsword.book.sword.ConfigEntryType.ConfigEntryPickType
public static class ConfigEntryType.ConfigEntryPickType
A ConfigEntryPickType is a ConfigEntryType that allows values from a pick list. Matching is expected to be case-sensitive, but data problems dictate a more flexible approach.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.crosswire.jsword.book.sword.ConfigEntryType |
---|
ConfigEntryType.ConfigEntryPickType, ConfigEntryType.ConfigEntrySyntheticType |
Field Summary | |
---|---|
private String[] |
choiceArray
The array of choices. |
private static long |
serialVersionUID
Serialization ID |
Fields inherited from class org.crosswire.jsword.book.sword.ConfigEntryType |
---|
ABOUT, BLOCK_COUNT, BLOCK_TYPE, CATEGORY, CIPHER_KEY, COMPRESS_TYPE, COPYRIGHT, COPYRIGHT_CONTACT_ADDRESS, COPYRIGHT_CONTACT_EMAIL, COPYRIGHT_CONTACT_NAME, COPYRIGHT_CONTACT_NOTES, COPYRIGHT_DATE, COPYRIGHT_HOLDER, COPYRIGHT_NOTES, DATA_PATH, DESCRIPTION, DIRECTION, DIRECTION_BIDI, DIRECTION_LTOR, DIRECTION_RTOL, DISPLAY_LEVEL, DISTRIBUTION_LICENSE, DISTRIBUTION_NOTES, DISTRIBUTION_SOURCE, ENCODING, FEATURE, FONT, GLOBAL_OPTION_FILTER, GLOSSARY_FROM, GLOSSARY_TO, HISTORY, INITIALS, INSTALL_SIZE, KEY_TYPE, LANG, LCSH, LIBRARY_URL, LOCATION_URL, MINIMUM_VERSION, MOD_DRV, OBSOLETES, OSIS_Q_TO_TICK, OSIS_VERSION, SHORT_COPYRIGHT, SHORT_PROMO, SOURCE_TYPE, SWORD_VERSION_DATE, TEXT_SOURCE, VERSION |
Constructor Summary | |
---|---|
ConfigEntryType.ConfigEntryPickType(String name,
String[] picks)
Simple ctor |
|
ConfigEntryType.ConfigEntryPickType(String name,
String[] picks,
Object defaultPick)
Simple ctor |
Method Summary | |
---|---|
String |
filter(String value)
Modify the value if necessary. |
protected boolean |
hasChoices()
Some keys can repeat. |
boolean |
isAllowed(String value)
Determines whether the string is allowed. |
Methods inherited from class org.crosswire.jsword.book.sword.ConfigEntryType |
---|
allowsContinuation, allowsRTF, convert, equals, fromInteger, fromString, getDefault, getName, hashCode, isSynthetic, mayRepeat, readResolve, reportDetails, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final String[] choiceArray
private static final long serialVersionUID
Constructor Detail |
---|
public ConfigEntryType.ConfigEntryPickType(String name, String[] picks)
public ConfigEntryType.ConfigEntryPickType(String name, String[] picks, Object defaultPick)
Method Detail |
---|
protected boolean hasChoices()
ConfigEntryType
hasChoices
in class ConfigEntryType
public boolean isAllowed(String value)
ConfigEntryType
isAllowed
in class ConfigEntryType
value
- the string to be checked
public String filter(String value)
ConfigEntryType
filter
in class ConfigEntryType
value
- the input
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |