|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DataSpec | |
---|---|
net.degreedays.api.data | For specifying and receiving degree-day data from the API. |
Uses of DataSpec in net.degreedays.api.data |
---|
Subclasses of DataSpec in net.degreedays.api.data | |
---|---|
class |
AverageDataSpec
Defines a specification for a set of average data such as 5-year-average degree days. |
class |
DatedDataSpec
Defines a specification for a set of dated data such as daily, weekly, or monthly degree days covering a specific period in time. |
Methods in net.degreedays.api.data that return DataSpec | |
---|---|
DataSpec |
DataSpecs.get(java.lang.String key)
Returns the non-null DataSpec that has been assigned the
specified string key . |
Methods in net.degreedays.api.data with parameters of type DataSpec | |
---|---|
DataSets.Builder |
DataSets.Builder.add(DataSpec dataSpec,
DataSet dataSet)
Adds an association between a DataSpec from the request and a
DataSet from the response, without dealing directly with the
string keys that are used in the XML. |
DataSpecs.CustomKeyBuilder |
DataSpecs.CustomKeyBuilder.add(java.lang.String key,
DataSpec dataSpec)
Adds a unique key and the DataSpec to be associated with
it. |
DataSets.Builder |
DataSets.Builder.addFailure(DataSpec dataSpec,
Failure failure)
Adds an association between a DataSpec from the request and a
Failure from the response, without dealing directly with the
string keys that are used in the XML. |
DataSet |
DataSets.get(DataSpec dataSpec)
Returns the DataSet that was generated to fulfil the
specified DataSpec from the request, or throws a
SourceDataException if no such DataSet could be
generated. |
java.lang.String |
DataSpecs.getKey(DataSpec dataSpec)
Returns the non-null, non-empty string key associated with dataSpec . |
Constructors in net.degreedays.api.data with parameters of type DataSpec | |
---|---|
DataSpecs(DataSpec dataSpecObject)
Constructs a DataSpecs object containing just the one
specified DataSpec object. |
|
DataSpecs(DataSpec[] dataSpecObjects)
Constructs a DataSpecs object containing the specified
DataSpec objects. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |