net.sf.jolene.constants
Class Prefs

java.lang.Object
  extended by net.sf.jolene.constants.Prefs

public class Prefs
extends java.lang.Object

Defined preferences for jolene.properties file. TODO maybe conver to Enum.

Since:
Dec 31, 2005 10:40 PM
Author:
Dan Howard

Field Summary
static Prefs CacheSize
          Default: 32.
static Prefs DocumentCaching
          Default: true.
static Prefs GenerateLocaleStrings
          When set to true /resources/application.properites file is updated based on the template labels.
static Prefs SelectValueSeperator
          Default comma (,).
static Prefs StreamLabelTags
          Default true.
static Prefs XHTMLStrict
          Default false.
 
Method Summary
 java.lang.String getValue()
           
 void setValue(java.lang.Object value)
           
 java.lang.String toString()
           
static Prefs valueOf(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CacheSize

public static final Prefs CacheSize
Default: 32. The initial size of the internal maps used to store documents.

See Also:
DocumentFactory

DocumentCaching

public static final Prefs DocumentCaching
Default: true. Indicates whether or not document cacheing is enabled. Cached documents are read once when requested and copies are returned from the DocumentFactory. If cacheing is disabled then documents are read and parsed whenever they are requested.

See Also:
DocumentFactory

GenerateLocaleStrings

public static final Prefs GenerateLocaleStrings
When set to true /resources/application.properites file is updated based on the template labels.


SelectValueSeperator

public static final Prefs SelectValueSeperator
Default comma (,). Used by Multi-Select objects when setting or getting option values.


StreamLabelTags

public static final Prefs StreamLabelTags
Default true. Indicates whether Label objects should stream back their label tags. You might want to set this to false if you intend to use Labels to stream back arbitrary HTML or JavaScript. In these cases you could also use the Text object.

See Also:
Text

XHTMLStrict

public static final Prefs XHTMLStrict
Default false. Indicates whether or not the streaming engine and the string utilities should output in XHTML or HTML format. It does not affect the parser.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.Object value)

valueOf

public static Prefs valueOf(java.lang.String name)
                     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException