|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.ConfigEntry
public class ConfigEntry
A ConfigEntry holds the value(s) for an entry of ConfigEntryType.
for license details.
The copyright to this program is held by it's authors.
,
License
Field Summary | |
---|---|
private static Histogram |
histogram
A histogram for debugging. |
private String |
internal
|
private static Logger |
log
The log stream |
private String |
name
|
private ConfigEntryType |
type
|
private String |
value
|
private List |
values
|
Constructor Summary | |
---|---|
ConfigEntry(String bookName,
ConfigEntryType aType,
String aValue)
Create a ConfigEntry directly with an initial value. |
|
ConfigEntry(String bookName,
String aName)
Create a ConfigEntry whose type is not certain and whose value is not known. |
Method Summary | |
---|---|
void |
addValue(String val)
Add a value to the list of values for this ConfigEntry |
boolean |
allowsContinuation()
While most fields are single line or single value, some allow continuation. |
boolean |
allowsRTF()
RTF is allowed in a few config entries. |
static void |
dumpStatistics()
|
boolean |
equals(Object obj)
|
String |
getName()
Get the key of this ConfigEntry |
ConfigEntryType |
getType()
Get the type of this ConfigEntry |
Object |
getValue()
Get the value(s) of this ConfigEntry. |
private String |
handleRTF(String aValue)
|
int |
hashCode()
|
boolean |
isAllowed(String aValue)
Determines whether the string is allowed. |
boolean |
isSupported()
Determine whether this config entry is supported. |
boolean |
match(Object search)
Determine whether this Config entry matches the value. |
boolean |
mayRepeat()
Some keys can repeat. |
private List |
processLines(OSISUtil.OSISFactory factory,
String aValue)
|
boolean |
reportDetails()
|
static void |
resetStatistics()
|
String |
toConf()
Build's a SWORD conf file as a string. |
org.jdom.Element |
toOSIS()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final Logger log
private static Histogram histogram
private ConfigEntryType type
private String internal
private String name
private List values
private String value
Constructor Detail |
---|
public ConfigEntry(String bookName, String aName)
bookName
- the internal name of the bookaName
- the name of the ConfigEntry.public ConfigEntry(String bookName, ConfigEntryType aType, String aValue)
bookName
- the internal name of the bookaType
- the kind of ConfigEntryaValue
- the initial value for the ConfigEntryMethod Detail |
---|
public String getName()
public ConfigEntryType getType()
public boolean isAllowed(String aValue)
aValue
-
public boolean allowsRTF()
public boolean allowsContinuation()
public boolean mayRepeat()
public boolean reportDetails()
public boolean isSupported()
public Object getValue()
public boolean match(Object search)
search
- the value to match against
public void addValue(String val)
public org.jdom.Element toOSIS()
public static void resetStatistics()
public static void dumpStatistics()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String toConf()
private String handleRTF(String aValue)
private List processLines(OSISUtil.OSISFactory factory, String aValue)
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |