public class CSVVizService extends AbstractVizService
Constructor and Description |
---|
CSVVizService()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
This operation directs the IVizService to "connect" to any pieces of its
service that may not already be running or require additional
configuration at run time.
|
IPlot |
createPlot(java.net.URI file)
This class provides a basic implementation where an
IllegalArgumentException is thrown if the specified URI or its
associated file's extension is invalid. |
boolean |
disconnect()
This operation directs the IVizService to "disconnect" any currently
running pieces of its service that may be running.
|
java.util.Map<java.lang.String,java.lang.String> |
getConnectionProperties()
This operation returns the current set of connection properties for the
IVizService.
|
java.lang.String |
getName()
This operation returns the name of the service.
|
java.lang.String |
getVersion()
This operation returns a version number for the service.
|
boolean |
hasConnectionProperties()
This operation tells whether or not the IVizService has connection
properties.
|
void |
setConnectionProperties(java.util.Map<java.lang.String,java.lang.String> props)
This operation updates the connection properties based on updates from a
client.
|
extensionSupported
public CSVVizService()
Note: Only OSGi should call this method!
public java.lang.String getName()
IVizService
public java.lang.String getVersion()
IVizService
public java.util.Map<java.lang.String,java.lang.String> getConnectionProperties()
IVizService
The contents of the properties are up to the IVizService implementation
public void setConnectionProperties(java.util.Map<java.lang.String,java.lang.String> props)
IVizService
If the IVizService does not require a connection to other components, it may ignore this operation.
props
- The new property valuespublic boolean connect()
IVizService
Each IVizService that requires a connection should provide a "best guess" at initial connection properties and if the properties are not updated a call to connect() should attempt to connect using the default properties.
public IPlot createPlot(java.net.URI file) throws java.lang.Exception
AbstractVizService
IllegalArgumentException
is thrown if the specified URI or its
associated file's extension is invalid.
It is recommended that sub-classes override this method but call it in
the first line. Sub-classes should also add supported extensions to the
set of AbstractVizService.supportedExtensions
at construction.
createPlot
in interface IVizService
createPlot
in class AbstractVizService
file
- The file from which the plot should be createdjava.lang.Exception
public boolean hasConnectionProperties()
IVizService
public boolean disconnect()
IVizService