|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.abra.j2xb.beans.propertyEditors.MOQNamePropertyEditor
public class MOQNamePropertyEditor
| Constructor Summary | |
|---|---|
MOQNamePropertyEditor()
|
|
| 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 propertyType,
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 propertyType,
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 MOQNamePropertyEditor()
| Method Detail |
|---|
public java.lang.Object fromString(java.lang.Class<?> propertyType,
java.lang.String value)
MOPropertyEditor
fromString in interface MOPropertyEditorpropertyType - 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 MOPropertyEditorpropertyType - the class of the propery valuevalue - - the property value
public java.lang.Object fromXmlValue(MOPropertySimpleTypeDescriptor propertyType,
XmlValue value)
MOPropertyEditor
fromXmlValue in interface MOPropertyEditorpropertyType - descriptor for simple type instancevalue - - the value to decode
public XmlValue toXmlValue(MOPropertySimpleTypeDescriptor propertyType,
java.lang.Object value)
MOPropertyEditor
toXmlValue in interface MOPropertyEditorpropertyType - descriptor for simple type instancevalue - - the value to encode
public MOValueValidationResult validateStringEncoding(java.lang.Class propertyValueType,
java.lang.String value)
MOPropertyEditor
validateStringEncoding in interface MOPropertyEditorpropertyValueType - the class of the propery valuevalue - - string encoding to validate
public boolean isCompatibleSimpleType(MoXmlBaseSimpleType xmlSimpleType)
isCompatibleSimpleType in interface MOPropertyEditorxmlSimpleType - simple type to check if compatible with the property editor
public MoXmlBaseSimpleType getXmlDefaultSimpleType(MoXmlBaseSimpleType xmlSimpleType)
MOPropertyEditor
getXmlDefaultSimpleType in interface MOPropertyEditorxmlSimpleType - an xml simple type. can be MoXmlBaseSimpleType.xmlNotSpecified
public java.lang.String[] getEnumerations(java.lang.Class<?> propertyValueType)
getEnumerations in interface MOPropertyEditorpropertyValueType - the enumeration class
public boolean supportsStringValidations()
MOPropertyEditor
supportsStringValidations in interface MOPropertyEditorpublic 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 | |||||||||