uk.ac.starlink.task.Environment
, TableEnvironment
public class MapEnvironment extends java.lang.Object implements TableEnvironment
Constructor | Description |
---|---|
MapEnvironment() |
Constructs a new environment with no values.
|
MapEnvironment(java.util.Map map) |
Constructs a new environment with a map of parameter name->value
pairs.
|
MapEnvironment(MapEnvironment env) |
Clone constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
acquireValue(uk.ac.starlink.task.Parameter param) |
|
void |
clearValue(uk.ac.starlink.task.Parameter param) |
|
java.lang.String[] |
getErrorLines() |
Returns the error output written by the task so far, in an array one line
per element.
|
java.io.PrintStream |
getErrorStream() |
|
java.lang.String |
getErrorText() |
Returns a string which contains all the error output written by the task
so far.
|
uk.ac.starlink.table.jdbc.JDBCAuthenticator |
getJdbcAuthenticator() |
Returns a JDBC authenticator suitable for use in this environment.
|
java.util.Map |
getMap() |
Returns the map object that contains the data for this environment.
|
java.lang.String[] |
getNames() |
|
java.lang.String[] |
getOutputLines() |
Returns the output written by the task so far, in an array one line
per element.
|
java.io.PrintStream |
getOutputStream() |
|
uk.ac.starlink.table.StarTable |
getOutputTable(java.lang.String paramName) |
If the task which has been executed in this environment has created
an output table which has not been otherwise disposed of, you
can get it from here.
|
java.lang.String |
getOutputText() |
Returns a string which contains all the output written by the task
so far.
|
uk.ac.starlink.table.StarTableFactory |
getTableFactory() |
Returns a table factory suitable for use in this environment.
|
uk.ac.starlink.table.StarTableOutput |
getTableOutput() |
Returns a table output marshaller suitable for use in this environment.
|
java.lang.String[] |
getUnused() |
Returns an array containing any words of the input argument list
which were never queried by the application to find their value.
|
boolean |
isDebug() |
Indicates whether we are running in debug mode.
|
boolean |
isStrictVotable() |
Determines whether votables are to be parsed in strict mode.
|
void |
setDebug(boolean debug) |
Sets whether we are running in debug mode.
|
MapEnvironment |
setResourceBase(java.lang.Class clazz) |
Sets the class which defines the context for resource discovery.
|
void |
setStrictVotable(boolean strict) |
Sets whether votables should be parsed in strict mode.
|
MapEnvironment |
setValue(java.lang.String paramName,
java.lang.Object value) |
Sets the value of a parameter.
|
public MapEnvironment()
public MapEnvironment(java.util.Map map)
map
- parameter mappublic MapEnvironment(MapEnvironment env)
env
- environment to copypublic java.io.PrintStream getOutputStream()
getOutputStream
in interface uk.ac.starlink.task.Environment
public java.io.PrintStream getErrorStream()
getErrorStream
in interface uk.ac.starlink.task.Environment
public void clearValue(uk.ac.starlink.task.Parameter param)
clearValue
in interface uk.ac.starlink.task.Environment
public java.lang.String[] getNames()
getNames
in interface uk.ac.starlink.task.Environment
public java.util.Map getMap()
public java.lang.String getOutputText()
public java.lang.String[] getOutputLines()
public java.lang.String getErrorText()
public java.lang.String[] getErrorLines()
public MapEnvironment setValue(java.lang.String paramName, java.lang.Object value)
paramName
- namevalue
- string or other valuepublic MapEnvironment setResourceBase(java.lang.Class clazz)
clazz
- resource base classClass.getResource(java.lang.String)
public uk.ac.starlink.table.StarTable getOutputTable(java.lang.String paramName)
paramName
- name of a TableConsumerParametername
public void acquireValue(uk.ac.starlink.task.Parameter param) throws uk.ac.starlink.task.TaskException
acquireValue
in interface uk.ac.starlink.task.Environment
uk.ac.starlink.task.TaskException
public uk.ac.starlink.table.StarTableFactory getTableFactory()
TableEnvironment
getTableFactory
in interface TableEnvironment
public uk.ac.starlink.table.StarTableOutput getTableOutput()
TableEnvironment
getTableOutput
in interface TableEnvironment
public uk.ac.starlink.table.jdbc.JDBCAuthenticator getJdbcAuthenticator()
TableEnvironment
getJdbcAuthenticator
in interface TableEnvironment
public boolean isDebug()
TableEnvironment
isDebug
in interface TableEnvironment
public void setDebug(boolean debug)
TableEnvironment
setDebug
in interface TableEnvironment
debug
- set true if you want debugging messagespublic boolean isStrictVotable()
TableEnvironment
isStrictVotable
in interface TableEnvironment
public void setStrictVotable(boolean strict)
TableEnvironment
setStrictVotable
in interface TableEnvironment
strict
- true if VOTables should be interpreted
strictly in accordance with the standardpublic java.lang.String[] getUnused()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.