Constructor and Description |
---|
DatasetResource()
Default constructor required by JAXB.
|
DatasetResource(String id,
String name,
Metadata metadata,
File workingDir)
Constructor that sets the name, metadata and working directory for the
dataset resource.
|
Modifier and Type | Method and Description |
---|---|
void |
addProductResource(ProductResource resource)
Adds a
ProductResource to the list of product resources for the
dataset. |
String |
getId()
Gets the id of the dataset.
|
MetadataResource |
getMetadataResource()
Gets the metadata resource for the dataset.
|
String |
getName()
Gets the name of the dataset.
|
List<ProductResource> |
getProductResources()
Gets the product resources for the dataset.
|
File |
getWorkingDir()
Gets the working directory for the dataset.
|
public DatasetResource()
public DatasetResource(String id, String name, Metadata metadata, File workingDir)
id
- the ID of the datasetname
- the name of the datasetmetadata
- the metadata for the datasetworkingDir
- the working directory for creating temporary files to
attach to responsespublic void addProductResource(ProductResource resource)
ProductResource
to the list of product resources for the
dataset.resource
- the resource to add to the dataset.public File getWorkingDir()
public String getId()
public String getName()
public List<ProductResource> getProductResources()
public MetadataResource getMetadataResource()
Copyright © 1999–2017 Apache OODT. All rights reserved.