|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.abra.j2xb.beans.propertyEditors.MOBooleanPropertyEditor
public class MOBooleanPropertyEditor
Constructor Summary | |
---|---|
MOBooleanPropertyEditor()
|
Method Summary | |
---|---|
int |
compareValues(java.lang.Object obj_a,
java.lang.Object obj_b)
|
java.lang.Object |
fromString(java.lang.Class<?> propertyType,
java.lang.String value)
decodes the property value from string. this string can be used in annotations as the property default value. |
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)
|
MoXmlBaseSimpleType |
getXmlDefaultSimpleType(MoXmlBaseSimpleType xmlSimpleType)
gets the base XML encoding type, used as the element base type in an XML schema |
boolean |
isCompatibleSimpleType(MoXmlBaseSimpleType xmlSimpleType)
|
boolean |
supportsNumberValidations()
indicates that the type supports the MOValidationNumber for Number validations |
boolean |
supportsStringValidations()
indicates that the type supports the MOValidationString for string validations |
java.lang.String |
toString(java.lang.Class<?> propertyType,
java.lang.Object value)
encodes the property value to string. |
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 |
Constructor Detail |
---|
public MOBooleanPropertyEditor()
Method Detail |
---|
public java.lang.Object fromString(java.lang.Class<?> propertyType, java.lang.String value)
MOPropertyEditor
fromString
in interface MOPropertyEditor
propertyType
- the class of the propery valuevalue
- - the string value
public java.lang.String toString(java.lang.Class<?> propertyType, java.lang.Object value)
MOPropertyEditor
toString
in interface MOPropertyEditor
propertyType
- the class of the propery valuevalue
- - the property value
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 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
public boolean isCompatibleSimpleType(MoXmlBaseSimpleType xmlSimpleType)
isCompatibleSimpleType
in interface MOPropertyEditor
xmlSimpleType
- simple type to check if compatible with the property editor
public MoXmlBaseSimpleType getXmlDefaultSimpleType(MoXmlBaseSimpleType xmlSimpleType)
MOPropertyEditor
getXmlDefaultSimpleType
in interface MOPropertyEditor
xmlSimpleType
- an xml simple type. can be MoXmlBaseSimpleType.xmlNotSpecified
public java.lang.String[] getEnumerations(java.lang.Class<?> propertyValueType)
getEnumerations
in interface MOPropertyEditor
propertyValueType
- the enumeration class
public boolean supportsStringValidations()
MOPropertyEditor
supportsStringValidations
in interface MOPropertyEditor
public boolean supportsNumberValidations()
MOPropertyEditor
supportsNumberValidations
in interface MOPropertyEditor
public int compareValues(java.lang.Object obj_a, java.lang.Object obj_b)
compareValues
in interface MOPropertyEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |