org.apache.oodt.cas.filemgr.structs
Class Product
java.lang.Object
org.apache.oodt.cas.filemgr.structs.Product
public class Product
- extends Object
- Version:
- $Revision: 13181 $
A Product is a set of files, or a heirarchical, directory structure that
should be ingested into the Catalog
.
- Author:
- mattmann, bfoster
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_TRANSFER
public static final String STATUS_TRANSFER
- See Also:
- Constant Field Values
STATUS_RECEIVED
public static final String STATUS_RECEIVED
- See Also:
- Constant Field Values
STRUCTURE_FLAT
public static final String STRUCTURE_FLAT
- See Also:
- Constant Field Values
STRUCTURE_HIERARCHICAL
public static final String STRUCTURE_HIERARCHICAL
- See Also:
- Constant Field Values
Product
public Product()
Default Constructor
Product
public Product(InputStream is)
throws InstantiationException
- Throws:
InstantiationException
Product
public Product(String name,
ProductType pType,
String structure,
String transferStatus,
List<Reference> refs)
Constructs a new Product with the specified parameters.
- Parameters:
name
- The Product's name.pType
- The Product's ProductType
.structure
- The structure of the product: either Hierarchical, or Flat.transferStatus
- The status of this product's transfer to the DataStore:
TRANSFERING, or RECEIVED would workrefs
- A List
of Reference
s pointing to the items
that make up this product.
getProductType
public ProductType getProductType()
- Returns:
- Returns the productType.
setProductType
public void setProductType(ProductType productType)
- Parameters:
productType
- The productType to set.
getProductStructure
public String getProductStructure()
- Returns:
- Returns the productStructure.
setProductStructure
public void setProductStructure(String productStructure)
- Parameters:
productStructure
- The productStructure to set.
getProductReferences
public List<Reference> getProductReferences()
- Returns:
- Returns the references.
setProductReferences
public void setProductReferences(List<Reference> references)
- Parameters:
references
- The references to set.
getProductName
public String getProductName()
- Returns:
- Returns the productName.
setProductName
public void setProductName(String productName)
- Parameters:
productName
- The productName to set.
getProductId
public String getProductId()
- Returns:
- Returns the productId.
setProductId
public void setProductId(String productId)
- Parameters:
productId
- The productId to set.
getTransferStatus
public String getTransferStatus()
- Returns:
- Returns the transferStatus.
setTransferStatus
public void setTransferStatus(String transferStatus)
- Parameters:
transferStatus
- The transferStatus to set.
getRootRef
public Reference getRootRef()
- Returns:
- the rootRef
setRootRef
public void setRootRef(Reference rootRef)
- Parameters:
rootRef
- the rootRef to set
getDefaultFlatProduct
public static final Product getDefaultFlatProduct(String name,
String defaultProductTypeId)
toXML
public Document toXML()
throws Exception
- Throws:
Exception
Copyright © 1999-2011 Apache OODT. All Rights Reserved.