Package org.jboss.common.beans.property
Class XMLEditorSupport<T>
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jboss.common.beans.property.PropertyEditorSupport<T>
-
- org.jboss.common.beans.property.XMLEditorSupport<T>
-
- All Implemented Interfaces:
java.beans.PropertyEditor
,PropertyEditor<T>
- Direct Known Subclasses:
DocumentEditor
,ElementEditor
public abstract class XMLEditorSupport<T> extends PropertyEditorSupport<T>
A property editor forDocument
.
-
-
Constructor Summary
Constructors Constructor Description XMLEditorSupport(java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.w3c.dom.Document
getAsDocument(java.lang.String text)
java.lang.String
getAsText()
Returns the property as a String.-
Methods inherited from class org.jboss.common.beans.property.PropertyEditorSupport
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getType, getValue, removePropertyChangeListener, removePropertyChangeListener, setAsText, setValue
-
-
-
-
Constructor Detail
-
XMLEditorSupport
public XMLEditorSupport(java.lang.Class<T> type)
- Parameters:
type
-
-
-
Method Detail
-
getAsText
public java.lang.String getAsText()
Returns the property as a String.- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Specified by:
getAsText
in interfacePropertyEditor<T>
- Overrides:
getAsText
in classPropertyEditorSupport<T>
- Returns:
- The property value as a human editable string.
Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
-
getAsDocument
protected org.w3c.dom.Document getAsDocument(java.lang.String text)
-
-