|
||||||||||
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.OutputConfig
public class OutputConfig
Configuration implementation for those configuration items that are related to a specific Renderer. Note that currently all Renderers use the same class. This allows command-line and configuration-file entries to be collected at startup and placed into a default instance of RenderConfig. In general, renderer-specific configuration options should have names that start with the renderer name (e.g. "pdf"). Renderers that are not interested in options specific to other renderers should simply ignore those options.
Field Summary |
---|
Fields inherited from class org.foray.common.Configuration |
---|
PRECEDENCE_COMMAND_LINE, PRECEDENCE_CONFIG_FILE, PRECEDENCE_DEFAULT |
Constructor Summary | |
---|---|
OutputConfig()
Constructor. |
Method Summary | |
---|---|
boolean |
canUserAnnotate()
|
boolean |
canUserCopy()
|
boolean |
canUserModify()
|
boolean |
canUserPrint()
|
Charset |
getCharset()
|
String |
getGenericOption(String optionName)
|
String |
getName()
Supplies a name for this configuration. |
String |
getOwnerPassword()
|
String[] |
getPdfFilters()
|
String |
getPdfVersion()
|
String |
getUserPassword()
|
boolean |
isOutputSparse()
|
boolean |
parseOption(String key,
String value,
int precedenceValue)
Attempt to add the configuration option. |
void |
setConsistentOutput(Boolean value,
int precedenceValue)
Sets the "consistentOutput" option. |
protected void |
setDefaults()
Sets any default configuration values. |
void |
setFineDetail(Boolean value,
int precedenceValue)
Sets the "fineDetail" option. |
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 OutputConfig()
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 boolean isOutputSparse()
isOutputSparse
in interface org.axsl.output.DocumentAreaConfiguration
public String[] getPdfFilters()
getPdfFilters
in interface org.axsl.output.DocumentPdfConfiguration
public String getOwnerPassword()
getOwnerPassword
in interface org.axsl.output.DocumentPdfConfiguration
public String getUserPassword()
getUserPassword
in interface org.axsl.output.DocumentPdfConfiguration
public boolean canUserPrint()
canUserPrint
in interface org.axsl.output.DocumentPdfConfiguration
public boolean canUserCopy()
canUserCopy
in interface org.axsl.output.DocumentPdfConfiguration
public boolean canUserModify()
canUserModify
in interface org.axsl.output.DocumentPdfConfiguration
public boolean canUserAnnotate()
canUserAnnotate
in interface org.axsl.output.DocumentPdfConfiguration
public Charset getCharset()
getCharset
in interface org.axsl.output.DocumentConfiguration
public String getPdfVersion()
getPdfVersion
in interface org.axsl.output.DocumentPdfConfiguration
public String getGenericOption(String optionName)
getGenericOption
in interface org.axsl.output.OutputConfiguration
public void setFineDetail(Boolean value, int precedenceValue)
value
- The value which should be set.precedenceValue
- The precedence with which this option should be treated.public void setConsistentOutput(Boolean value, int precedenceValue)
value
- The value which should be set.precedenceValue
- The precedence with which this option should be treated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |