Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Package org.scopemvc.util.convertor

Utility classes that include two main areas of interest to application developers: ScopeConfig for configuring the Scope framework, and UIStrings used to look up user-readable Strings from localised resources.

See:
          Description

Interface Summary
StringConvertor Specifies contract for all classes converting object values to String representation and back from String into object instances.
 

Class Summary
BigDecimalStringConvertor String convertor for type BigDecimal.
BigIntegerStringConvertor String convertor for type BigInteger.
BooleanStringConvertor String convertor for type java.util.Date.
DateStringConvertor String convertor for type java.util.Date.
DateTimeStringConvertor String convertor for type org.scopemvc.util.DateTime or java.util.Date.
DoubleStringConvertor String convertor for type java.lang.Double.
FloatStringConvertor String convertor for type java.lang.Float.
IntegerStringConvertor String convertor for type java.lang.Integer.
LongStringConvertor String convertor for type java.lang.Long.
NullStringConvertor Abstract base class for StringConvertors that recognise a presetn String value to represent null.
NumberStringConvertor Abstract base class for numeric StringConvertors.
StringConvertors Factory class for creation of default convertors for arbitrary classes.
StringStringConvertor String convertor for type java.lang.String.
TimeStringConvertor String convertor for type org.scopemvc.util.Time or java.util.Date.
 

Package org.scopemvc.util.convertor Description

Utility classes that include two main areas of interest to application developers: ScopeConfig for configuring the Scope framework, and UIStrings used to look up user-readable Strings from localised resources.

ScopeConfig

ScopeConfig is the configuration manager used to configure various aspects of Scope. Default configuration is provided by the org.scopemvc.util.DefaultScopeConfig ResourceBundle.

Scope can be configured by supplying an application-specific ResourceBundle and calling setPropertiesName 55 during application startup. Any properties defined in a custom config in this way will override the defaults.

Scope configuration includes the following:

{ "org.scopemvc.view.servlet.xml.ServletXSLView.ModelElement", "data" }, { "org.scopemvc.view.servlet.xml.ServletXSLView.ElementElement", "element" }, { "org.scopemvc.view.servlet.xml.ServletXSLView.IDAttribute", "id" }, { "org.scopemvc.view.servlet.xml.ServletXSLView.IndexElement", "index" }, { "org.scopemvc.controller.servlet.ScopeServlet.maxControllerPoolSize", new Integer(10) },

UIStrings

A dictionary that uses localised ResourceBundle(s) to look up user-readable Strings by a key. This is used by the default ControlException handler in BasicController treating the message in the exception as a key to look up a localised String from UIStrings.

The property resource used for an application must be set up by calling UIStrings.setPropertiesName(java.lang.String)>UIStrings.setPropertiesName(java.lang.String) 55 at application startup. The usual ResourceBundle localisation applies to the resource specified.