java.lang.Object
org.jxbeans.AbstractJXBean
org.jxbeans.AbstractDocumentSource
org.jxbeans.input.SimpleDocumentGenerator
- All Implemented Interfaces:
- org.jxbeans.DocumentGenerator, org.jxbeans.DocumentSource, java.io.Serializable
- public class SimpleDocumentGenerator
- extends org.jxbeans.AbstractDocumentSource
- implements org.jxbeans.DocumentGenerator
The SimpleDocumentGenerator class provides a very simple implementation
of the DocumentGenerator interface. Specifically, objects of this class
can be used if the document to be process has already been generated by
some other means in the hosting application. Alternatively, if there is
no real starting document, an object of this class can be used to
generate a simple, empty document to get a model going.
- Since:
- 1.0
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rootElementName
private java.lang.String rootElementName
document
private transient org.jdom.Document document
SimpleDocumentGenerator
public SimpleDocumentGenerator()
generateDocument
public void generateDocument()
throws org.jxbeans.JXBeanException
- Description copied from interface:
org.jxbeans.DocumentGenerator
- Classes implementing this method are expected to generate a
DocumentReadyEvent and notify this object's DocumentReadyListeners.
- Specified by:
generateDocument in interface org.jxbeans.DocumentGenerator
setRootElementName
public void setRootElementName(java.lang.String aRootElementName)
- Sets the root element name to be used in generating a document.
- Since:
- 1.0
getRootElementName
public java.lang.String getRootElementName()
- Since:
- 1.0
setDocument
public void setDocument(org.jdom.Document aDocument)
- Sets the
Document that this bean will "generate". If this is set,
the rootElementName property is ignored.
- Since:
- 1.0
getDocument
public org.jdom.Document getDocument()
- Since:
- 1.0