|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.common.persistence.standard.JUNGGraphPajekPersister
A wrapper class for JUNG's PajekNetFile class that reads and writes Pajek .net files. This persister should only be used by users who are seeking to store very basic graphs which do not contain much attribute information. This wrapper currently does not store any edge weight information either.
JUNG: Java Universal Network Graph Framework, http://jung.sourceforge.net| Constructor Summary | |
JUNGGraphPajekPersister()
|
|
| Method Summary | |
boolean |
canPersist(java.lang.Object model)
Determines if this persister can persist the given data model. |
boolean |
canRestore(ResourceDescriptor resource)
|
PropertyMap |
getPropertyMap()
Gets a property map describing this persister and file format (if applicable). |
void |
persist(java.lang.Object model,
ResourceDescriptor resource)
Persists a data model to a resource such as a file or database. |
java.lang.Object |
restore(ResourceDescriptor resource)
Restores a model from the specified resource. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JUNGGraphPajekPersister()
| Method Detail |
public PropertyMap getPropertyMap()
Persister
getPropertyMap in interface PersisterPersister.getPropertyMap()
public void persist(java.lang.Object model,
ResourceDescriptor resource)
throws java.io.IOException,
PersistenceException
Persister
persist in interface Persistermodel - The model to be persisted.resource - The resource to persist the model to.
java.io.IOException
PersistenceExceptionPersister.persist(java.lang.Object, edu.iu.iv.core.persistence.ResourceDescriptor)
public java.lang.Object restore(ResourceDescriptor resource)
throws java.io.IOException,
java.lang.OutOfMemoryError,
PersistenceException
Persister
restore in interface Persisterjava.io.IOException
java.lang.OutOfMemoryError
PersistenceExceptionPersister.restore(edu.iu.iv.core.persistence.ResourceDescriptor)public boolean canPersist(java.lang.Object model)
Persister
canPersist in interface Persistermodel - The model for which persistence is desired.
Persister.canPersist(java.lang.Object)public boolean canRestore(ResourceDescriptor resource)
canRestore in interface Persisterresource - The resource from which restoration is desired.
An example of a resource is a file on disk.
Persister.canRestore(edu.iu.iv.core.persistence.ResourceDescriptor)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||