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.PropertyEditorSupportA 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.DocumentgetAsDocument(java.lang.String text)java.lang.StringgetAsText()Returns the property as a String.voidsetAsText(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:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin 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:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport- Throws:
NestedRuntimeException- A parse exception occured
-
getAsDocument
protected org.w3c.dom.Document getAsDocument(java.lang.String text)
-
-