java.lang.Object
org.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
XScuflView
public XScuflView(org.embl.ebi.escience.scufl.ScuflModel model)
- Construct the view and bind to the given model.
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