com.abra.j2xb.beans.propertyEditors
Class MOShortPropertyEditor
java.lang.Object
com.abra.j2xb.beans.propertyEditors.MONumberPropertyEditor
com.abra.j2xb.beans.propertyEditors.MOShortPropertyEditor
- All Implemented Interfaces:
- MOPropertyEditor
public class MOShortPropertyEditor
- 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 |
MOShortPropertyEditor
public MOShortPropertyEditor()
compareValues
public int compareValues(java.lang.Object num_a,
java.lang.Object num_b)
getNumberTypeName
protected java.lang.String getNumberTypeName()
- Specified by:
getNumberTypeName
in class MONumberPropertyEditor
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
Copyright © 2008. All Rights Reserved.