|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.abra.j2xb.beans.propertyEditors.MONumberPropertyEditor
public abstract class MONumberPropertyEditor
Constructor Summary | |
---|---|
MONumberPropertyEditor()
|
Method Summary | |
---|---|
java.lang.Object |
fromXmlValue(MOPropertySimpleTypeDescriptor simpleTypeDescriptor,
XmlValue value)
decodes the property value from the value used to store in XML. |
java.lang.String[] |
getEnumerations(java.lang.Class<?> propertyValueType)
|
protected abstract java.lang.String |
getNumberTypeName()
|
boolean |
supportsNumberValidations()
indicates that the type supports the MOValidationNumber for Number validations |
boolean |
supportsStringValidations()
indicates that the type supports the MOValidationString for string validations |
XmlValue |
toXmlValue(MOPropertySimpleTypeDescriptor simpleTypeDescriptor,
java.lang.Object value)
encodes the value to XML representation |
MOValueValidationResult |
validateStringEncoding(java.lang.Class propertyValueType,
java.lang.String value)
validates the string encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.abra.j2xb.beans.propertyEditors.MOPropertyEditor |
---|
compareValues, fromString, getXmlDefaultSimpleType, isCompatibleSimpleType, toString |
Constructor Detail |
---|
public MONumberPropertyEditor()
Method Detail |
---|
public java.lang.Object fromXmlValue(MOPropertySimpleTypeDescriptor simpleTypeDescriptor, XmlValue value)
MOPropertyEditor
fromXmlValue
in interface MOPropertyEditor
simpleTypeDescriptor
- descriptor for simple type instancevalue
- - the value to decode
public XmlValue toXmlValue(MOPropertySimpleTypeDescriptor simpleTypeDescriptor, java.lang.Object value)
MOPropertyEditor
toXmlValue
in interface MOPropertyEditor
simpleTypeDescriptor
- descriptor for simple type instancevalue
- - the value to encode
public java.lang.String[] getEnumerations(java.lang.Class<?> propertyValueType)
getEnumerations
in interface MOPropertyEditor
propertyValueType
- the enumeration class
public MOValueValidationResult validateStringEncoding(java.lang.Class propertyValueType, java.lang.String value)
MOPropertyEditor
validateStringEncoding
in interface MOPropertyEditor
propertyValueType
- the class of the propery valuevalue
- - string encoding to validate
protected abstract java.lang.String getNumberTypeName()
public boolean supportsStringValidations()
MOPropertyEditor
supportsStringValidations
in interface MOPropertyEditor
public boolean supportsNumberValidations()
MOPropertyEditor
supportsNumberValidations
in interface MOPropertyEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |