Package org.geotools.graph.io.standard
Class AbstractReaderWriter
- Object
-
- AbstractReaderWriter
-
- All Implemented Interfaces:
GraphReaderWriter
- Direct Known Subclasses:
DBReaderWriter
,SerializedReaderWriter
,TextfileReaderWriter
public abstract class AbstractReaderWriter extends Object implements GraphReaderWriter
An abstract implementation of the GraphReaderWriter interface.- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
-
-
Constructor Summary
Constructors Constructor Description AbstractReaderWriter()
Constructs an AbstractReaderWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getProperty(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 Detail
-
GENERATOR
public static final String GENERATOR
GraphGenerator property key *- See Also:
- Constant Field Values
-
BUILDER
public static final String BUILDER
GraphBuilder property key *- See Also:
- Constant Field Values
-
NODES
public static final String NODES
Node write / read flag *- See Also:
- Constant Field Values
-
EDGES
public static final String EDGES
Edge write / read flag *- See Also:
- Constant Field Values
-
-
Method Detail
-
setProperty
public void setProperty(String name)
Sets a property. Some properties dont have values associated with them, they are just set, and unset.- Parameters:
name
- Name of property
-
setProperty
public void setProperty(String name, Object obj)
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:
GraphReaderWriter.setProperty(String, Object)
-
getProperty
public Object getProperty(String name)
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:
GraphReaderWriter.getProperty(String)
-
-