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

Quick Search    Search Deep

org.embl.ebi.escience.scufl.view
Class XScuflView  view XScuflView download XScuflView.java

java.lang.Object
  extended byorg.embl.ebi.escience.scufl.view.XScuflView
All Implemented Interfaces:
org.embl.ebi.escience.scufl.ScuflModelEventListener, java.io.Serializable

public class XScuflView
extends java.lang.Object
implements org.embl.ebi.escience.scufl.ScuflModelEventListener, java.io.Serializable

Represents a ScuflModel instance as an XScufl document.


Field Summary
private  org.jdom.Document cachedDocument
           
private  java.lang.String cachedRepresentation
           
private  boolean cacheValid
           
private  org.embl.ebi.escience.scufl.ScuflModel model
           
 
Constructor Summary
XScuflView(org.embl.ebi.escience.scufl.ScuflModel model)
          Construct the view and bind to the given model.
 
Method Summary
 org.jdom.Document getDocument()
          Get the XML Document from this view
 java.lang.String getXMLText()
          Get the XML String from this view
 void receiveModelEvent(org.embl.ebi.escience.scufl.ScuflModelEvent event)
          Handle model events
private  org.jdom.Namespace scuflNS()
          The namespace for the generated nodes, references the scufl.XScufl class
private  void updateCachedView()
          Update or create the cached view, this consists of building the XML document from the model and creating a textual version of it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private org.embl.ebi.escience.scufl.ScuflModel model

cacheValid

private boolean cacheValid

cachedRepresentation

private java.lang.String cachedRepresentation

cachedDocument

private org.jdom.Document cachedDocument
Constructor Detail

XScuflView

public XScuflView(org.embl.ebi.escience.scufl.ScuflModel model)
Construct the view and bind to the given model.

Method Detail

getDocument

public org.jdom.Document getDocument()
Get the XML Document from this view


getXMLText

public java.lang.String getXMLText()
Get the XML String from this view


receiveModelEvent

public void receiveModelEvent(org.embl.ebi.escience.scufl.ScuflModelEvent event)
Handle model events

Specified by:
receiveModelEvent in interface org.embl.ebi.escience.scufl.ScuflModelEventListener

updateCachedView

private void updateCachedView()
Update or create the cached view, this consists of building the XML document from the model and creating a textual version of it.


scuflNS

private org.jdom.Namespace scuflNS()
The namespace for the generated nodes, references the scufl.XScufl class