com.abra.j2xb.beans.propertyEditors
Class MOBigDecimalPropertyEditor
java.lang.Object
com.abra.j2xb.beans.propertyEditors.MONumberPropertyEditor
com.abra.j2xb.beans.propertyEditors.MOBigDecimalPropertyEditor
- All Implemented Interfaces:
- MOPropertyEditor
public class MOBigDecimalPropertyEditor
- extends MONumberPropertyEditor
- Since:
- JDK1.5
- Version:
- 1.0, May 1, 2008
- Author:
- Yoav Abrahami
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MOBigDecimalPropertyEditor
public MOBigDecimalPropertyEditor()
fromString
public java.lang.Object fromString(java.lang.Class<?> propertyType,
java.lang.String value)
- Description copied from interface:
MOPropertyEditor
- decodes the property value from string. this string can be used in annotations as the property default value.
- Parameters:
propertyType
- the class of the propery valuevalue
- - the string value
- Returns:
- the property value
toString
public java.lang.String toString(java.lang.Class<?> propertyType,
java.lang.Object value)
- Description copied from interface:
MOPropertyEditor
- encodes the property value to string.
- Parameters:
propertyType
- the class of the propery valuevalue
- - the property value
- Returns:
- string encoding
isCompatibleSimpleType
public boolean isCompatibleSimpleType(MoXmlBaseSimpleType xmlSimpleType)
- Parameters:
xmlSimpleType
- simple type to check if compatible with the property editor
- Returns:
- returns if the simple type is compatible with this property editor
getXmlDefaultSimpleType
public MoXmlBaseSimpleType getXmlDefaultSimpleType(MoXmlBaseSimpleType xmlSimpleType)
- Description copied from interface:
MOPropertyEditor
- gets the base XML encoding type, used as the element base type in an XML schema
- Parameters:
xmlSimpleType
- an xml simple type. can be MoXmlBaseSimpleType.xmlNotSpecified
- Returns:
- the XML type
compareValues
public int compareValues(java.lang.Object obj_a,
java.lang.Object obj_b)
getNumberTypeName
protected java.lang.String getNumberTypeName()
- Specified by:
getNumberTypeName
in class MONumberPropertyEditor
Copyright © 2008. All Rights Reserved.