Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jxbeans.utilities
Class XbeansAdapter  view XbeansAdapter download XbeansAdapter.java

java.lang.Object
  extended byorg.jxbeans.AbstractJXBean
      extended byorg.jxbeans.AbstractDocumentSource
          extended byorg.jxbeans.utilities.XbeansAdapter
All Implemented Interfaces:
org.jxbeans.DocumentReadyListener, org.jxbeans.DocumentSource, java.util.EventListener, java.io.Serializable

public class XbeansAdapter
extends org.jxbeans.AbstractDocumentSource
implements org.jxbeans.DocumentReadyListener

The XbeansAdapter JXBean provides a bridge to the Xbeans framework. Xbeans from that framework can be integrated into JXBean models by placing them before or after an XbeansAdapter in the model.

Since:
1.0
Version:
1.0

Field Summary
private  org.jdom.input.DOMBuilder builder
           
private static org.apache.log4j.Category log
           
private  org.jdom.output.DOMOutputter outputter
           
private  DOMListener xbeansListener
           
 
Fields inherited from class org.jxbeans.AbstractDocumentSource
listeners
 
Fields inherited from class org.jxbeans.AbstractJXBean
 
Constructor Summary
XbeansAdapter()
           
 
Method Summary
 void documentReady(org.jxbeans.DocumentReadyEvent anEvent)
          Accepts a JXBeans DocumentReadyEvent, converts the JDOM Document into a W3C DOM Document, creates a new Xbeans DOMEvent with the newly converted document, and the source from the incoming DocumentReadyEvent.
 DOMListener getDOMListener()
           
 void setDOMListener(DOMListener aDOMListener)
          Sets the Xbeans-compliant DOMListener.
 
Methods inherited from class org.jxbeans.AbstractDocumentSource
addDocumentReadyListener, forwardDocument, forwardDocument, getDocumentReadyListeners, logDocument, removeDocumentReadyListener
 
Methods inherited from class org.jxbeans.AbstractJXBean
getName, logErrorAndRaiseException, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Category log

xbeansListener

private DOMListener xbeansListener

builder

private transient org.jdom.input.DOMBuilder builder

outputter

private transient org.jdom.output.DOMOutputter outputter
Constructor Detail

XbeansAdapter

public XbeansAdapter()
Method Detail

documentReady

public void documentReady(org.jxbeans.DocumentReadyEvent anEvent)
                   throws org.jxbeans.JXBeanException
Accepts a JXBeans DocumentReadyEvent, converts the JDOM Document into a W3C DOM Document, creates a new Xbeans DOMEvent with the newly converted document, and the source from the incoming DocumentReadyEvent.

Specified by:
documentReady in interface org.jxbeans.DocumentReadyListener
Since:
1.0

setDOMListener

public void setDOMListener(DOMListener aDOMListener)
Sets the Xbeans-compliant DOMListener. This object will receive DOMEvents when a DocumentReadyEvent is received by this bean.

Since:
1.0

getDOMListener

public DOMListener getDOMListener()
Since:
1.0