|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.droplet.NumberTagConverter
public class NumberTagConverter
Performs conversion to and from Number objects in jhtml tags.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
NumberTagConverter()
|
Method Summary | |
---|---|
java.lang.String |
convertObjectToString(DynamoHttpServletRequest pReq,
java.lang.Object pValue,
java.util.Properties pAttributes)
Coverts a Number to a String using a number formatter pattern. |
java.lang.Object |
convertStringToObject(DynamoHttpServletRequest pReq,
java.lang.String pValue,
java.util.Properties pAttributes)
Coverts a String which represents a number to a Number using a NumberFormatter. |
java.lang.String |
getName()
Returns the unique name for the TagConverter. |
TagAttributeDescriptor[] |
getTagAttributeDescriptors()
Returns the list of TagAttributeDescriptors which are used by this converter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public NumberTagConverter()
Method Detail |
---|
public TagAttributeDescriptor[] getTagAttributeDescriptors()
TagConverter
getTagAttributeDescriptors
in interface TagConverter
public java.lang.String getName()
TagConverter
getName
in interface TagConverter
public java.lang.Object convertStringToObject(DynamoHttpServletRequest pReq, java.lang.String pValue, java.util.Properties pAttributes) throws TagConversionException
convertStringToObject
in interface TagConverter
pAttributes
- contains a number entry which is used
to specify the number format string. An optional locale
attribute can be used to specify the locale to use to define the
number formatter.pReq
- the request object for this conversion. This object
can be null if the conversion is not performed in the context of
a request.pValue
- The original String value to be converted.
TagConversionException
- if the conversion failed.public java.lang.String convertObjectToString(DynamoHttpServletRequest pReq, java.lang.Object pValue, java.util.Properties pAttributes) throws TagConversionException
convertObjectToString
in interface TagConverter
pReq
- the request this conversion applies to. You can use
this request to obtain the RequestLocale to localize the conversion
process. This can be null if the conversion is not performed in
the context of a request.pValue
- the Object value to be converted to a StringpAttributes
- the set of attributes supplied in this tag
declaration.
TagConversionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |