Spring Web Services Framework

org.springframework.xml.namespace
Class QNameEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by 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)

Constructor Summary
QNameEditor()
           
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
           
 
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
 

Constructor Detail

QNameEditor

public QNameEditor()
Method Detail

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

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.