Package org.jboss.util.propertyeditor
Class DocumentEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- org.jboss.util.propertyeditor.DocumentEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
- Direct Known Subclasses:
ElementEditor
public class DocumentEditor extends java.beans.PropertyEditorSupport
A property editor forDocument
.- Version:
- $Revision$
-
-
Constructor Summary
Constructors Constructor Description DocumentEditor()
-
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.void
setAsText(java.lang.String text)
Sets as an Document created by a String.
-
-
-
Method Detail
-
getAsText
public java.lang.String getAsText()
Returns the property as a String.- Specified by:
getAsText
in interfacejava.beans.PropertyEditor
- Overrides:
getAsText
in classjava.beans.PropertyEditorSupport
- Throws:
NestedRuntimeException
- conversion exception occured
-
setAsText
public void setAsText(java.lang.String text)
Sets as an Document created by a String.- Specified by:
setAsText
in interfacejava.beans.PropertyEditor
- Overrides:
setAsText
in classjava.beans.PropertyEditorSupport
- Throws:
NestedRuntimeException
- A parse exception occured
-
getAsDocument
protected org.w3c.dom.Document getAsDocument(java.lang.String text)
-
-