org.topbraidcomposer.gef.graph.snapshots
Class GraphSnapshot

java.lang.Object
  extended by com.hp.hpl.jena.enhanced.Polymorphic
      extended by com.hp.hpl.jena.enhanced.EnhNode
          extended by com.hp.hpl.jena.rdf.model.impl.ResourceImpl
              extended by org.topbraidcomposer.gef.graph.snapshots.GraphSnapshot
All Implemented Interfaces:
com.hp.hpl.jena.graph.FrontsNode, com.hp.hpl.jena.rdf.model.RDFNode, com.hp.hpl.jena.rdf.model.Resource, ISnapshot

public class GraphSnapshot
extends com.hp.hpl.jena.rdf.model.impl.ResourceImpl
implements ISnapshot

A Graph snapshot it stored as a resource in a Graph snapshots model (loaded from the .graphs file on demand).

Author:
Holger Knublauch

Field Summary
 
Fields inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl
factory, rdfNodeFactory
 
Fields inherited from class com.hp.hpl.jena.enhanced.EnhNode
enhGraph, node
 
Constructor Summary
GraphSnapshot(com.hp.hpl.jena.rdf.model.Resource snapshotResource)
           
 
Method Summary
 void dispose()
           
 com.hp.hpl.jena.rdf.model.Resource getSelectedResource()
          Identifies the resource that was selected when the snapshot was created, so that it can be restored.
 void restore(AbstractGEFViewer viewer)
           
 java.lang.String toString()
           
 
Methods inherited from class com.hp.hpl.jena.rdf.model.impl.ResourceImpl
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getNode, getProperty, getRequiredProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, visitWith
 
Methods inherited from class com.hp.hpl.jena.enhanced.EnhNode
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isURIResource, isValid, viewAs
 
Methods inherited from class com.hp.hpl.jena.enhanced.Polymorphic
addView, already, alreadyHasView, asInternal, supports
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.Resource
equals
 
Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFNode
as, canAs, isAnon, isLiteral, isResource, isURIResource
 
Methods inherited from interface com.hp.hpl.jena.graph.FrontsNode
asNode
 

Constructor Detail

GraphSnapshot

public GraphSnapshot(com.hp.hpl.jena.rdf.model.Resource snapshotResource)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface ISnapshot

getSelectedResource

public com.hp.hpl.jena.rdf.model.Resource getSelectedResource()
Description copied from interface: ISnapshot
Identifies the resource that was selected when the snapshot was created, so that it can be restored.

Specified by:
getSelectedResource in interface ISnapshot
Returns:
the selected resource

restore

public void restore(AbstractGEFViewer viewer)
Specified by:
restore in interface ISnapshot

toString

public java.lang.String toString()
Specified by:
toString in interface com.hp.hpl.jena.rdf.model.RDFNode
Specified by:
toString in interface com.hp.hpl.jena.rdf.model.Resource
Overrides:
toString in class com.hp.hpl.jena.rdf.model.impl.ResourceImpl