|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.PropertyEditorSupport
com.virtualweaver.xotics.datamodel.editor.XoAbstractPropertyEditor
com.virtualweaver.xotics.datamodel.editor.XoXsdPropertyEditor
This class is the base PropertyEditor of all Xo XSD datatypes and all XSD wrapper PropertyEditors. An XSD wrapper PE is a PropertyEditor editing, in the same way as an XSD PE, not an XSD type but its Java class equivalent.
Field Summary | |
protected boolean |
isXsdType
Must be true if derived class is an XSD PE (default) , false if it is a wrapper |
protected com.virtualweaver.xotics.datamodel.datatype.XdtRestrictionSupport |
support
the restriction support class handling restriction mecanism, coming from XSD datatype |
protected java.lang.Class |
xsdClass
The XSD class handled by this and overall its derived classes. |
Fields inherited from class com.virtualweaver.xotics.datamodel.editor.XoAbstractPropertyEditor |
customEditor, value |
Constructor Summary | |
XoXsdPropertyEditor()
Creates a new instance of XoXsdPropertyEditor. |
Method Summary | |
protected abstract void |
createCustomEditor()
This method informs this to create the graphical UI to edit the value. |
protected java.lang.Object |
createValue(java.lang.String str)
Creates an instance of value object by converting string param str. |
protected java.lang.Object |
decode(java.lang.String str)
|
protected java.lang.String |
getAsString(java.lang.Object v)
|
java.lang.String |
getAsText()
Returns current value as string representation |
int |
getFractionDigit()
|
int |
getLength()
|
java.lang.Object |
getMaxExclusive()
|
java.lang.Object |
getMaxInclusive()
|
int |
getMaxLength()
|
java.lang.Object |
getMinExclusive()
|
java.lang.Object |
getMinInclusive()
|
int |
getMinLength()
|
java.util.regex.Pattern |
getPattern()
|
int |
getTotalDigit()
|
byte |
getWhiteSpace()
|
protected java.lang.String |
getXsdTypeLabel()
|
protected abstract void |
initCustomEditor()
This method informs this to init or reinit the graphical UI previously created by createCustomEditor(). |
void |
matchFractionDigit(java.lang.Object v)
|
void |
matchLength(java.lang.Object v)
|
void |
matchMaxExclusive(java.lang.Object v)
|
void |
matchMaxInclusive(java.lang.Object v)
|
void |
matchMaxLength(java.lang.Object v)
|
void |
matchMinExclusive(java.lang.Object v)
|
void |
matchMinInclusive(java.lang.Object v)
|
void |
matchMinLength(java.lang.Object v)
|
void |
matchPattern(java.lang.String v)
|
void |
matchTotalDigit(java.lang.Object v)
|
protected abstract void |
setCustomEditorValue()
This method informs this to setup the graphical UI with current value. |
void |
setProperty(XoProperty p)
Here, this method extracts XSD class if any. |
java.lang.String |
whiteSpace(java.lang.String lexStr)
|
Methods inherited from class com.virtualweaver.xotics.datamodel.editor.XoAbstractPropertyEditor |
getCustomEditor, getValue, isPaintable, setAsText, setValue, supportsCustomEditor |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getTags, paintValue, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.PropertyEditor |
addPropertyChangeListener, getJavaInitializationString, getTags, paintValue, removePropertyChangeListener |
Field Detail |
protected java.lang.Class xsdClass
protected boolean isXsdType
protected com.virtualweaver.xotics.datamodel.datatype.XdtRestrictionSupport support
Constructor Detail |
public XoXsdPropertyEditor()
Method Detail |
public void setProperty(XoProperty p)
setProperty
in interface XoPropertyEditor
setProperty
in class XoAbstractPropertyEditor
protected java.lang.Object createValue(java.lang.String str) throws java.lang.IllegalArgumentException
XoAbstractPropertyEditor
createValue
in class XoAbstractPropertyEditor
str
- the string to convert into value
java.lang.IllegalArgumentException
- if str is not convertibleprotected java.lang.Object decode(java.lang.String str) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String getAsText()
XoAbstractPropertyEditor
getAsText
in interface java.beans.PropertyEditor
getAsText
in class XoAbstractPropertyEditor
protected java.lang.String getAsString(java.lang.Object v)
protected abstract void createCustomEditor()
XoAbstractPropertyEditor
createCustomEditor
in class XoAbstractPropertyEditor
protected abstract void initCustomEditor()
XoAbstractPropertyEditor
initCustomEditor
in class XoAbstractPropertyEditor
protected abstract void setCustomEditorValue()
XoAbstractPropertyEditor
setCustomEditorValue
in class XoAbstractPropertyEditor
protected java.lang.String getXsdTypeLabel()
public void matchFractionDigit(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchLength(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchMaxExclusive(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchMaxInclusive(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchMaxLength(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchMinExclusive(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchMinInclusive(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchMinLength(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchPattern(java.lang.String v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void matchTotalDigit(java.lang.Object v) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String whiteSpace(java.lang.String lexStr) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int getFractionDigit() throws java.lang.RuntimeException
java.lang.RuntimeException
public int getTotalDigit()
public java.lang.Object getMaxExclusive()
public java.lang.Object getMaxInclusive()
public java.lang.Object getMinExclusive()
public java.lang.Object getMinInclusive()
public int getLength()
public int getMaxLength()
public int getMinLength()
public java.util.regex.Pattern getPattern()
public byte getWhiteSpace()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |