|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.common.Configuration
org.foray.core.SessionConfig
public class SessionConfig
Configuration implementation for those configuration items that are related to the FOraySession.
Field Summary |
---|
Fields inherited from class org.foray.common.Configuration |
---|
PRECEDENCE_COMMAND_LINE, PRECEDENCE_CONFIG_FILE, PRECEDENCE_DEFAULT |
Constructor Summary | |
---|---|
SessionConfig()
Constructor. |
Method Summary | |
---|---|
URL |
getBaseDocument()
Returns the path to the base document that should be used for finding resources with relative URLs. |
String |
getMode()
Returns the "mode" configuration item. |
String |
getName()
Supplies a name for this configuration. |
boolean |
isModeRender()
Indicates whether the "mode" is "render". |
boolean |
isModeValidate()
Indicates whether the "mode" is "validate". |
EntityResolver |
makeEntityResolver()
Creates and returns an entity resolver. |
URL |
optionBaseDirectory()
Returns the "base-directory" configuration item. |
boolean |
optionCacheGraphics()
Returns the "cache-graphics" configuration item. |
boolean |
optionDumpConfiguration()
Returns the "dump-configuration" configuration item. |
URL |
optionFontBaseDirectory()
Returns the "font-base-directory" configuration item. |
URL |
optionFontConfiguration()
Returns the URL to the font-configuration file. |
URL |
optionHyphenationBaseDirectory()
Returns the "hyphenation-base-directory" configuration item. |
String |
optionLanguage()
Returns the "language" configuration item. |
URL |
optionNaturalLanguageBaseDirectory()
Returns the "natural-language-base-directory" configuration item. |
boolean |
optionStrokeSVGText()
Returns the "stroke-svg-text" configuration item. |
String |
optionVerbosity()
Returns the "verbosity" configuration item. |
String |
optionXMLCatalog()
Returns the "xml-catalog" configuration item. |
boolean |
parseOption(String key,
String value,
int precedenceValue)
Attempt to add the configuration option. |
void |
setBaseDirectory(URL newBaseDir,
int precedence)
Sets the "base-directory" configuration item. |
void |
setBaseDocument(URL baseDocument)
Sets the path to the base document that should be used for finding resources with relative URLs. |
protected void |
setDefaults()
Sets any default configuration values. |
Methods inherited from class org.foray.common.Configuration |
---|
addUnvalidatedOption, dumpConfiguration, getBooleanValue, getIntValue, getListValue, getStringValue, getValue, parseBoolean, parseSpaceDelimitedList, parseURL, parseURLDirectory, parseURLFile, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionConfig()
Method Detail |
---|
public String getName()
Configuration
getName
in class Configuration
protected void setDefaults()
Configuration
setDefaults
in class Configuration
public boolean parseOption(String key, String value, int precedenceValue) throws ConfigurationException
Configuration
parseOption
in class Configuration
key
- A string containing the key value for the configuration value.value
- The string containing the configuration value.precedenceValue
- The precedence with which this option should be
treated.
Entries with a higher precedence value override entries with a lower
value.
ConfigurationException
- For an invalid value for the given key.public URL optionBaseDirectory()
public void setBaseDirectory(URL newBaseDir, int precedence)
newBaseDir
- The new "base-directory".precedence
- The precedence asserted by the setter.public boolean optionCacheGraphics()
public boolean optionDumpConfiguration()
public URL optionFontBaseDirectory()
public URL optionFontConfiguration()
public URL optionHyphenationBaseDirectory()
public URL optionNaturalLanguageBaseDirectory()
public String optionLanguage()
public boolean optionStrokeSVGText()
public String optionVerbosity()
public String optionXMLCatalog()
public EntityResolver makeEntityResolver()
public void setBaseDocument(URL baseDocument)
baseDocument
- The path to the base document.public URL getBaseDocument()
public String getMode()
public boolean isModeRender()
public boolean isModeValidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |