Class QNameEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.xml.namespace.QNameEditor
- All Implemented Interfaces:
PropertyEditor
PropertyEditor for
javax.xml.namespace.QName
, to populate a property of type QName from a String value.
Expects the syntax
localPartor
{namespace}localPartor
{namespace}prefix:localPartThis resembles the
toString()
representation of QName
itself, but allows for prefixes to be specified
as well.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
QNameEditor
public QNameEditor()
-
-
Method Details
-
setAsText
- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Throws:
IllegalArgumentException
-
getAsText
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-