Package org.geotools.graph.io.standard
Class AbstractReaderWriter
Object
AbstractReaderWriter
- All Implemented Interfaces:
GraphReaderWriter
- Direct Known Subclasses:
DBReaderWriter
,SerializedReaderWriter
,TextfileReaderWriter
An abstract implementation of the GraphReaderWriter interface.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name) Returns a property for the reader/writer.void
setProperty
(String name) Sets a property.void
setProperty
(String name, Object obj) Sets a property for the reader/writer.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface GraphReaderWriter
read, write
-
Field Details
-
GENERATOR
GraphGenerator property key *- See Also:
-
BUILDER
GraphBuilder property key *- See Also:
-
NODES
Node write / read flag *- See Also:
-
EDGES
Edge write / read flag *- See Also:
-
-
Constructor Details
-
AbstractReaderWriter
public AbstractReaderWriter()Constructs an AbstractReaderWriter.
-
-
Method Details
-
setProperty
Sets a property. Some properties dont have values associated with them, they are just set, and unset.- Parameters:
name
- Name of property
-
setProperty
Description copied from interface:GraphReaderWriter
Sets a property for the reader/writer.- Specified by:
setProperty
in interfaceGraphReaderWriter
- Parameters:
name
- Name of the property.obj
- Value of the property.- See Also:
-
getProperty
Description copied from interface:GraphReaderWriter
Returns a property for the reader/writer. This method will return null if the property has not been set with a call to setProperty(String,Object).- Specified by:
getProperty
in interfaceGraphReaderWriter
- Parameters:
name
- Name of the property.- Returns:
- Value of the property or null if the property is undefined.
- See Also:
-