Modifier and Type | Field and Description |
---|---|
static String |
STATUS_RECEIVED |
static String |
STATUS_TRANSFER |
static String |
STRUCTURE_FLAT |
static String |
STRUCTURE_HIERARCHICAL |
static String |
STRUCTURE_STREAM |
Constructor and Description |
---|
Product()
Default Constructor
|
Product(InputStream is) |
Product(String name,
ProductType pType,
String structure,
String transferStatus,
List<Reference> refs)
Constructs a new Product with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
static Product |
getDefaultFlatProduct(String name,
String defaultProductTypeId) |
String |
getProductId() |
String |
getProductName() |
String |
getProductReceivedTime() |
List<Reference> |
getProductReferences() |
String |
getProductStructure() |
ProductType |
getProductType() |
Reference |
getRootRef() |
String |
getTransferStatus() |
void |
setProductId(String productId) |
void |
setProductName(String productName) |
void |
setProductRecievedTime(String productReceivedTime)
Set time product was ingested.
|
void |
setProductReferences(List<Reference> references) |
void |
setProductStructure(String productStructure) |
void |
setProductType(ProductType productType) |
void |
setRootRef(Reference rootRef) |
void |
setTransferStatus(String transferStatus) |
Document |
toXML() |
public static final String STATUS_TRANSFER
public static final String STATUS_RECEIVED
public static final String STRUCTURE_FLAT
public static final String STRUCTURE_HIERARCHICAL
public static final String STRUCTURE_STREAM
public Product()
Default Constructor
public Product(InputStream is) throws InstantiationException
InstantiationException
public Product(String name, ProductType pType, String structure, String transferStatus, List<Reference> refs)
Constructs a new Product with the specified 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.public ProductType getProductType()
public void setProductType(ProductType productType)
productType
- The productType to set.public String getProductStructure()
public void setProductStructure(String productStructure)
productStructure
- The productStructure to set.public void setProductReferences(List<Reference> references)
references
- The references to set.public String getProductName()
public void setProductName(String productName)
productName
- The productName to set.public String getProductId()
public void setProductId(String productId)
productId
- The productId to set.public String getTransferStatus()
public void setTransferStatus(String transferStatus)
transferStatus
- The transferStatus to set.public Reference getRootRef()
public void setRootRef(Reference rootRef)
rootRef
- the rootRef to setpublic static Product getDefaultFlatProduct(String name, String defaultProductTypeId)
public Document toXML() throws UnsupportedEncodingException, FileManagerException
public void setProductRecievedTime(String productReceivedTime)
productRecievedTime
- public String getProductReceivedTime()
Copyright © 1999–2017 Apache OODT. All rights reserved.