uk.ac.starlink.task.Environment, TableEnvironmentpublic 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.Environmentpublic java.io.PrintStream getErrorStream()
getErrorStream in interface uk.ac.starlink.task.Environmentpublic void clearValue(uk.ac.starlink.task.Parameter param)
clearValue in interface uk.ac.starlink.task.Environmentpublic java.lang.String[] getNames()
getNames in interface uk.ac.starlink.task.Environmentpublic 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 TableConsumerParameternamepublic void acquireValue(uk.ac.starlink.task.Parameter param)
throws uk.ac.starlink.task.TaskException
acquireValue in interface uk.ac.starlink.task.Environmentuk.ac.starlink.task.TaskExceptionpublic uk.ac.starlink.table.StarTableFactory getTableFactory()
TableEnvironmentgetTableFactory in interface TableEnvironmentpublic uk.ac.starlink.table.StarTableOutput getTableOutput()
TableEnvironmentgetTableOutput in interface TableEnvironmentpublic uk.ac.starlink.table.jdbc.JDBCAuthenticator getJdbcAuthenticator()
TableEnvironmentgetJdbcAuthenticator in interface TableEnvironmentpublic boolean isDebug()
TableEnvironmentisDebug in interface TableEnvironmentpublic void setDebug(boolean debug)
TableEnvironmentsetDebug in interface TableEnvironmentdebug - set true if you want debugging messagespublic boolean isStrictVotable()
TableEnvironmentisStrictVotable in interface TableEnvironmentpublic void setStrictVotable(boolean strict)
TableEnvironmentsetStrictVotable in interface TableEnvironmentstrict - 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.