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

Quick Search    Search Deep

org.scopemvc.util.convertor.* (15)

org.scopemvc.util: Javadoc index of package org.scopemvc.util.


Package Samples:

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.  

Classes:

DateStringConvertor: String convertor for type java.util.Date . The Time part of Date instances are ignored. See DateTimeStringConvertor and TimeStringConvertor . It uses one java.text.DateFormat for converting into String and set of DateFormat s for parsing. Parsing formats are successively used to try to parse until one is successful. Formats are picked up from config (see org.scopemvc.util.DefaultScopeConfig for details) or if none in config, the default formatter is: DateFormat.getDateInstance(DateFormat.MEDIUM) and default parsers are: DateFormat.getDateInstance(DateFormat.FULL); DateFormat.getDateInstance(DateFormat.LONG); ...
TimeStringConvertor: String convertor for type org.scopemvc.util.Time or java.util.Date . Date part of Date instances are ignored. It uses one java.text.DateFormat DateFormat for converting into String and an array of DateFormat s for parsing. Parsing formats are successively used to try to parse until one is successful. Formats are picked up from config (see org.scopemvc.util.DefaultScopeConfig for details) or if none in config, the default formatter is: DateFormat.getTimeInstance(DateFormat.MEDIUM) and default parsers are: DateFormat.getTimeInstance(DateFormat.FULL); DateFormat.getTimeInstance(DateFormat.LONG); DateFormat.getTimeInstance(DateFormat.MEDIUM); ...
DateTimeStringConvertor: String convertor for type org.scopemvc.util.DateTime or java.util.Date . Both date and time parts of Date instances are used. It uses one java.text.DateFormat DateFormat for converting into String and an array of DateFormat s for parsing. Parsing formats are successively used to try to parse until one is successful. Formats are picked up from config (see org.scopemvc.util.DefaultScopeConfig for details) or if none in config, the default formatter is: DateFormat.getDateTimeInstance() and default parsers are: DateFormat.getDateTimeInstance((FULL|LONG|MEDIUM|SHORT), (FULL|LONG|MEDIUM|SHORT)); Note: ...
ScopeConfig: Loads the Scope config in such a way that custom properties can be set from the Java command line (-D switch) or from a custom ResourceBundle. Any properties not supplied are loaded with the default settings in DefaultScopeConfig . A custom ResourceBundle name can be specified with setPropertiesName(java.lang.String) 55 during application initialisation, although the default "scope.config" resource is always loaded if it can be found. Property definitions have the following priority (from highest to lowest): System properties setPropertiesName() properties scope.properties DefaultScopeConfig
LocalizedException: An Exception that implements getLocalizedMessage() 55 by looking up its message as an ID that is looked up in UIStrings to present the user with a localised message: message parameters passed in are substituted in the message as java.text.MessageFormat.
DefaultScopeConfig: Default resources for Scope. Can be augmented with a new ResourceBundle to customize Scope behaviour, in which case, see ScopeConfig.setPropertiesName(java.lang.String) 55 . Custom configuration specified this way overrides the defaults in this resource.
StringStringConvertor: String convertor for type java.lang.String . The main sense of the class is to correctly handle null value. Useful results can be obtained if null representation is set for example to "(null)" or "N/A" - this strings are then parsed into null value.
Debug: A (very simple) general purpose Debug class for assertion checking. e.g. if (Debug.ON) Debug.assert(thing != null); if (Debug.ON) Debug.assert(thing != null, "thing is null"); The ON boolean is a static final so that setting it to false and rebuilding the project will strip all debug code from the binaries.
StringConvertor: Specifies contract for all classes converting object values to String representation and back from String into object instances. Convertors should be based on Locale . Default StringConvertor s can be obtained with class StringConvertors .
WeakSet: Holds a set of objects where the fact that the object is contained within the set does not prevent it from being garbage collected. Sort of like WeakHashMap only no values. Could have used WeakHashMap and just set the value to null I guess???
UIStrings: Uses a ResourceBundle as a dictionary mapping IDs against user-readable Strings that can be presented on the UI. A custom resource bundle should be provided, with a call to setPropertiesName during application initialisation.
DateTime: An empty marker subclass of java.util.Date that DateTimeStringConvertor is associated with in the default configuration. Whereas the java.util.Date datatype is associated with the DateStringConvertor.
Time: An empty marker subclass of java.util.Date that TimeStringConvertor is associated with in the default configuration. Whereas the java.util.Date datatype is associated with the DateStringConvertor.
NumberStringConvertor: Abstract base class for numeric StringConvertors. It uses default java.text.Number format. New format can be set.
NullStringConvertor: Abstract base class for StringConvertors that recognise a presetn String value to represent null .
BasicPoolableObjectFactory: Creates pooleable instances of a specific class. The class to use MUST have a default constructor.
IntegerStringConvertor: String convertor for type java.lang.Integer .
FloatStringConvertor: String convertor for type java.lang.Float .
StringConvertors: Factory class for creation of default convertors for arbitrary classes.
BasicObjectPool: Pools objects given a factory and optional maximum pool size.
BooleanStringConvertor: String convertor for type java.util.Date .
ObjectPoolManager: Manages pooling of instances of different classes.
BigDecimalStringConvertor: String convertor for type BigDecimal .
BigIntegerStringConvertor: String convertor for type BigInteger .

Home | Contact Us | Privacy Policy | Terms of Service