org.jboss.util.propertyeditor
Class DocumentEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.jboss.util.propertyeditor.DocumentEditor
All Implemented Interfaces:
java.beans.PropertyEditor
Direct Known Subclasses:
ElementEditor (src)

public class DocumentEditor
extends java.beans.PropertyEditorSupport

A property editor for Document.


Constructor Summary
DocumentEditor()
           
 
Method Summary
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.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentEditor

public DocumentEditor()
Method Detail

getAsText

public java.lang.String getAsText()
Returns the property as a String.

Throws:
NestedRuntimeException (src) - conversion exception occured

setAsText

public void setAsText(java.lang.String text)
Sets as an Document created by a String.

Throws:
NestedRuntimeException (src) - A parse exception occured

getAsDocument

protected org.w3c.dom.Document getAsDocument(java.lang.String text)