|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.ConfigEntryType
public class ConfigEntryType
Constants for the keys in a SwordConfig file. Taken from http://sword.sourceforge.net/cgi-bin/twiki/view/Swordapi/ConfFileLayout now located at http://www.crosswire.org/ucgi-bin/twiki/view/Swordapi/ConfFileLayout
Keys that might be available that we are ignoring for now:
// Returns the distributionLicense - this is a 'flag type' field - the value // will be the result of several constants ORed. See the // DISTRIBUTION_LICENSE* constants in SwordConstants. It appears some // versions do not stick to this convention, because of this, there is an // additional menber distributionLicenseAdditionInfo, to store additional // information. private int distributionLicense; private String distributionLicenseAdditionalInfo = ""; String licensesString = reader.getFirstValue("DistributionLicense"); if (licensesString != null) { StringTokenizer tok = new StringTokenizer(licensesString, ";"); while (tok.hasMoreTokens()) { String distributionLicenseString = tok.nextToken().trim(); int index = matchingIndex(SwordConstants.DISTIBUTION_LICENSE_STRINGS, distributionLicenseString, -1); if (index != -1) { distributionLicense |= 1 << index; } else { if (!distributionLicenseAdditionalInfo.equals("")) { distributionLicenseAdditionalInfo += "; "; } distributionLicenseAdditionalInfo += distributionLicenseString; } } }
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
,
Serialized FormField Summary | |
---|---|
static ConfigEntryType |
ABOUT
Contains rtf that describes the module. |
static ConfigEntryType |
BLOCK_COUNT
single value integer, unknown use, some indications that we ought to be using it |
static ConfigEntryType |
BLOCK_TYPE
The level at which compression is applied, BOOK, CHAPTER, or VERSE |
static ConfigEntryType |
CATEGORY
The Category of the module. |
static ConfigEntryType |
CIPHER_KEY
If this exists in the conf, then the module is encrypted. |
static ConfigEntryType |
COMPRESS_TYPE
The type of compression in use. |
static ConfigEntryType |
COPYRIGHT
Informational copyright notice. |
static ConfigEntryType |
COPYRIGHT_CONTACT_ADDRESS
Copyright info. |
static ConfigEntryType |
COPYRIGHT_CONTACT_EMAIL
Copyright info. |
static ConfigEntryType |
COPYRIGHT_CONTACT_NAME
Copyright info. |
static ConfigEntryType |
COPYRIGHT_DATE
Copyright info. |
static ConfigEntryType |
COPYRIGHT_HOLDER
single value string, unknown use |
static ConfigEntryType |
COPYRIGHT_NOTES
Copyright info. |
static ConfigEntryType |
DATA_PATH
Relative path to the data files, some issues with this |
static ConfigEntryType |
DESCRIPTION
The full name of this module |
static ConfigEntryType |
DIRECTION
The layout direction of the text in the book. |
static String |
DIRECTION_BIDI
|
static String |
DIRECTION_LTOR
Constants for direction |
static String |
DIRECTION_RTOL
|
static ConfigEntryType |
DISPLAY_LEVEL
single value integer, unknown use, some indications that we ought to be using it |
static ConfigEntryType |
DISTRIBUTION_LICENSE
Copyright info. |
static ConfigEntryType |
DISTRIBUTION_NOTES
Copyright info. |
static ConfigEntryType |
DISTRIBUTION_SOURCE
Similar to DataPath. |
static ConfigEntryType |
ENCODING
The character encoding. |
static ConfigEntryType |
FEATURE
A Feature describes a characteristic of the Module. |
static ConfigEntryType |
FONT
A recommended font to use for the module. |
static ConfigEntryType |
GLOBAL_OPTION_FILTER
Global Option Filters are the names of routines in Sword that can be used to display the data. |
static ConfigEntryType |
GLOSSARY_FROM
Books with a Feature of Glossary are used to map words FROM one language TO another. |
static ConfigEntryType |
GLOSSARY_TO
Books with a Feature of Glossary are used to map words FROM one language TO another. |
static ConfigEntryType |
HISTORY
multiple values starting with History, some sort of change-log. |
static ConfigEntryType |
INITIALS
The abbreviated name by which this module is known. |
static ConfigEntryType |
INSTALL_SIZE
The installed size of the module in bytes. |
static ConfigEntryType |
KEY
The key is used to subdivide the books into their types. |
static ConfigEntryType |
LANG
single value string, defaults to en, the language of the module |
static ConfigEntryType |
LANGUAGE
single value string, unknown use While Lang is an IS0-639 or ethnolog value, this is a friendly representation of the same. |
static ConfigEntryType |
LANGUAGE_FROM
For a GLOSSARY_FROM, this is the friendly version of the same. |
static ConfigEntryType |
LANGUAGE_TO
For a GLOSSARY_TO, this is the friendly version of the same. |
static ConfigEntryType |
LCSH
Library of Congress Subject Heading. |
static ConfigEntryType |
MINIMUM_VERSION
single value version number, lowest sword c++ version that can read this module JSword does not use this value. |
static ConfigEntryType |
MOD_DRV
This indicates how the module was stored. |
private String |
name
The name of the ConfigEntryType |
private static int |
nextObj
|
private int |
obj
|
static ConfigEntryType |
OBSOLETES
A list of prior "initials" for the current module. |
static ConfigEntryType |
OSIS_Q_TO_TICK
When false do not show quotation marks for OSIS text that has elements. |
private static long |
serialVersionUID
Serialization ID |
static ConfigEntryType |
SHORT_COPYRIGHT
A one line copyright statement, required by Lockman for NASB |
static ConfigEntryType |
SHORT_PROMO
A one line promo statement, required by Lockman for NASB |
static ConfigEntryType |
SOURCE_TYPE
This indicates the kind of markup used for the book. |
static ConfigEntryType |
SWORD_VERSION_DATE
The date that this version of the module was last updated. |
static ConfigEntryType |
TEXT_SOURCE
Information on where the module's text was obtained. |
private static ConfigEntryType[] |
VALUES
|
static ConfigEntryType |
VERSION
An informational string indicating the current version of the book. |
Constructor Summary | |
---|---|
protected |
ConfigEntryType(String name)
Simple ctor |
Method Summary | |
---|---|
boolean |
allowsContinuation()
While most fields are single line or single value, some allow continuation. |
boolean |
allowsRTF()
RTF is allowed in a few config entries. |
boolean |
equals(Object o)
Prevent subclasses from overriding canonical identity based Object methods |
String |
filter(String value)
Modify the value if necessary. |
static ConfigEntryType |
fromInteger(int i)
Lookup method to convert from an integer |
static ConfigEntryType |
fromString(String name)
Lookup method to convert from a String |
Object |
getDefault()
Some ConfigEntryTypes have defaults. |
String |
getName()
Returns the normalized name of this ConfigEntry. |
protected boolean |
hasChoices()
Some keys can repeat. |
int |
hashCode()
Prevent subclasses from overriding canonical identity based Object methods |
boolean |
isAllowed(String value)
Determines whether the string is allowed. |
boolean |
isSynthetic()
Synthetic keys are those that are not in the Sword Module's conf, but are needed by the program. |
boolean |
mayRepeat()
Some keys can repeat. |
(package private) Object |
readResolve()
|
boolean |
reportDetails()
Determines the level of detail stored in the histogram. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ConfigEntryType ABOUT
public static final ConfigEntryType BLOCK_COUNT
public static final ConfigEntryType BLOCK_TYPE
public static final ConfigEntryType CATEGORY
public static final ConfigEntryType CIPHER_KEY
public static final ConfigEntryType COMPRESS_TYPE
public static final ConfigEntryType COPYRIGHT
public static final ConfigEntryType COPYRIGHT_CONTACT_ADDRESS
public static final ConfigEntryType COPYRIGHT_CONTACT_EMAIL
public static final ConfigEntryType COPYRIGHT_CONTACT_NAME
public static final ConfigEntryType COPYRIGHT_DATE
public static final ConfigEntryType COPYRIGHT_HOLDER
public static final ConfigEntryType COPYRIGHT_NOTES
public static final ConfigEntryType DATA_PATH
public static final ConfigEntryType DESCRIPTION
public static final ConfigEntryType DIRECTION
public static final ConfigEntryType DISPLAY_LEVEL
public static final ConfigEntryType DISTRIBUTION_LICENSE
public static final ConfigEntryType DISTRIBUTION_NOTES
public static final ConfigEntryType DISTRIBUTION_SOURCE
public static final ConfigEntryType ENCODING
public static final ConfigEntryType GLOBAL_OPTION_FILTER
public static final ConfigEntryType GLOSSARY_FROM
public static final ConfigEntryType GLOSSARY_TO
public static final ConfigEntryType HISTORY
public static final ConfigEntryType INSTALL_SIZE
public static final ConfigEntryType FEATURE
public static final ConfigEntryType FONT
public static final ConfigEntryType LANG
public static final ConfigEntryType LCSH
public static final ConfigEntryType MOD_DRV
public static final ConfigEntryType MINIMUM_VERSION
public static final ConfigEntryType OBSOLETES
public static final ConfigEntryType SOURCE_TYPE
public static final ConfigEntryType SWORD_VERSION_DATE
public static final ConfigEntryType TEXT_SOURCE
public static final ConfigEntryType VERSION
public static final ConfigEntryType OSIS_Q_TO_TICK
elements.
public static final ConfigEntryType INITIALS
public static final ConfigEntryType KEY
public static final ConfigEntryType LANGUAGE
public static final ConfigEntryType LANGUAGE_FROM
public static final ConfigEntryType LANGUAGE_TO
public static final ConfigEntryType SHORT_PROMO
public static final ConfigEntryType SHORT_COPYRIGHT
public static final String DIRECTION_LTOR
public static final String DIRECTION_RTOL
public static final String DIRECTION_BIDI
private String name
private static final long serialVersionUID
private static int nextObj
private final int obj
private static final ConfigEntryType[] VALUES
Constructor Detail |
---|
protected ConfigEntryType(String name)
Method Detail |
---|
public String getName()
public boolean isAllowed(String value)
value
- the string to be checked
public String filter(String value)
value
- the input
public boolean allowsRTF()
public boolean allowsContinuation()
public boolean mayRepeat()
public boolean reportDetails()
protected boolean hasChoices()
public boolean isSynthetic()
public Object getDefault()
public static ConfigEntryType fromString(String name)
public static ConfigEntryType fromInteger(int i)
public final boolean equals(Object o)
Object.equals(java.lang.Object)
public final int hashCode()
Object.hashCode()
public String toString()
Object readResolve()
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |