org.springframework.xml.namespace
Class QNameEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.xml.namespace.QNameEditor
- All Implemented Interfaces:
- PropertyEditor
public class QNameEditor
- extends PropertyEditorSupport
PropertyEditor for javax.xml.namespace.QName
, to populate a property of type QName from a String value.
Expects the syntax
localPart
or
{namespace}localPart
or
{namespace}prefix:localPart
This 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:
QName
,
QName.toString()
,
QName.valueOf(String)
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QNameEditor
public QNameEditor()
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
- Throws:
IllegalArgumentException
getAsText
public String getAsText()
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.