|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataAccessor
An interface to get metadata describing behaviour, and possibly even look-and-feel, for any analysis. An analysis is typically a remote program, often, but not necessarily, a command-line program. It can be also other remote resource, like a web page - the result of such "analysis" is screen-scraped content of the page.
This interface does not address the problem where to get metadata
from (for example by reading and parsing an XML file). It is up to
the implementation of this interface to solve it. For example, look
at DefaultMetadataAccessorFactory
.
Method Summary | |
---|---|
java.lang.String |
describe()
Return the whole metadata in the raw format. |
AnalysisDef |
getAnalysisDef()
Return a general description of an analysis. |
InputPropertyDef[] |
getInputDefs()
Return a slightly simplified version of what is returned by getParamDefs() - and only for input data and
options. |
OutputPropertyDef[] |
getOutputDefs()
Return a slightly simplified version of what is returned by getParamDefs() - and only for output data. |
ParamDef[] |
getParamDefs()
Return description of all parameters for an analysis. |
java.lang.String |
getServiceName()
Return a name of a service providing this analysis. |
Method Detail |
---|
AnalysisDef getAnalysisDef()
ParamDef[] getParamDefs()
InputPropertyDef[] getInputDefs()
getParamDefs()
- and only for input data and
options.
Some elements (parameters) returned by getParamDefs()
can be represented here by more elements. For example, this
typically happens for input data that can be sent to an
analysis either as direct data, or as a reference to data. Such
input is represented by only one ParamDef
instance, but
by two elements returned by this getInputDefs.
The mapping between elements returned by getParamDefs()
and by this method is done by parameter name: the names used by
this method are either same as those returned by getParamDefs()
, or they have some additional suffixes. Soaplab
recognizes suffixes SoaplabConstants.DIRECT_DATA_SUFFIX
, SoaplabConstants.URL_SUFFIX
,SoaplabConstants.USA_SUFFIX
.
OutputPropertyDef[] getOutputDefs()
getParamDefs()
- and only for output data.
The mapping between elements returned by getParamDefs()
and by this method is done by parameter name: the names used by
this method are the same as those returned by getParamDefs()
.
java.lang.String describe() throws SoaplabException
SoaplabException
- if metadata does not existjava.lang.String getServiceName() throws SoaplabException
getAnalysisDef()
SoaplabException
|
Version: ${maven.project.version} | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |