org.jboss.common.beans.property
Class URIEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jboss.common.beans.property.PropertyEditorSupport<URI>
org.jboss.common.beans.property.URIEditor
- All Implemented Interfaces:
- PropertyEditor
public class URIEditor
- extends PropertyEditorSupport<URI>
A property editor for URI.
- Author:
- baranowb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIEditor
public URIEditor()
setAsText
public void setAsText(String text)
- Description copied from interface:
PropertyEditor
- Set the property value by parsing a given String. May raise
java.lang.IllegalArgumentException if either the String is
badly formatted or if this kind of property can't be expressed
as text.
- Specified by:
setAsText in interface PropertyEditor- Specified by:
setAsText in class PropertyEditorSupport<URI>
- Parameters:
text - The string to be parsed.
getAsText
public String getAsText()
- Description copied from interface:
PropertyEditor
- Gets the property value as text.
- Specified by:
getAsText in interface PropertyEditor- Overrides:
getAsText in class PropertyEditorSupport<URI>
- 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().
toURI
public static URI toURI(String urispec)
throws URISyntaxException,
UnsupportedEncodingException
- Throws:
URISyntaxException
UnsupportedEncodingException
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.