|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpl.eda.archive.ProductList
This class builds a list of items that make up a product. Product items are identified by their reference and reference type, defined as follows:
FILE_METADATA - An XML file conforming to the CAS metadata structure which will be parsed with the resulting element/value pairs stored in the catalog.
FILE_DATA_LOCAL - Any file intended to be transferred from the client to the server for local storage.
FILE_DATA_REMOTE - Any file intended to be referenced from its current location, instead of being transferred to the server.
file:///home/user/test.xml or http://cas.jpl.nasa.gov/dtd/metadata.dtd.
| Constructor Summary | |
ProductList()
Constructor given no arguments. |
|
| Method Summary | |
void |
addProductItem(java.lang.String productRefType,
java.lang.String productRef)
Add an item to the product list. |
void |
addProductItem(java.lang.String productRefType,
java.lang.String productRef,
java.lang.String archiveRef)
Deprecated. Replaced by either addProductItem(String, String) or
addProductItem(String, String, String, long). |
void |
addProductItem(java.lang.String productRefType,
java.lang.String productRef,
java.lang.String archiveRef,
long length)
Add an item to the product list. |
java.lang.Object |
clone()
Local clone() implementation. |
boolean |
equals(java.lang.Object rhs)
Local equals() implementation. |
java.lang.String |
getArchiveRef(int index)
Get the archive reference. |
Reference |
getArchiveRefUrl(int index)
Get the archive reference URL. |
int |
getCount()
Get the number of items in the product list. |
long |
getLength(int index)
Get the product item length. |
java.lang.String |
getProductRef(int index)
Get the product reference. |
java.lang.String |
getProductRefType(int index)
Get the product item reference type. |
Reference |
getProductRefUrl(int index)
Get the product reference URL. |
int |
hashCode()
Local hashCode() implementation. |
void |
setLength(int index,
long length)
Set the product item length. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProductList()
| Method Detail |
public void addProductItem(java.lang.String productRefType,
java.lang.String productRef)
throws ReferenceException
productRefType - The type of the reference.productRef - The reference to the product item.
ReferenceException - If the reference is malformed.
public void addProductItem(java.lang.String productRefType,
java.lang.String productRef,
java.lang.String archiveRef)
throws ReferenceException
addProductItem(String, String) or
addProductItem(String, String, String, long).
productRefType - The type of the reference.productRef - The reference to the product item.archiveRef - The reference to the product item on the server side. This may be NULL.
ReferenceException - If the reference is malformed.
public void addProductItem(java.lang.String productRefType,
java.lang.String productRef,
java.lang.String archiveRef,
long length)
throws ReferenceException
productRefType - The type of the reference.productRef - The reference to the product item.archiveRef - The reference to the product item on the server side. This may be NULL.length - The length of the product item.
ReferenceException - If the reference is malformed.public int getCount()
size to match the rest of Java, but instead it matches the rest of OODT.
public java.lang.String getProductRefType(int index)
index - The index of the item representing its location in the list.
public java.lang.String getProductRef(int index)
index - The index of the item representing its location in the list.
public Reference getProductRefUrl(int index)
index - The index of the item representing its location in the list.
public java.lang.String getArchiveRef(int index)
index - The index of the item representing its location in the list.
public Reference getArchiveRefUrl(int index)
index - The index of the item representing its location in the list.
public long getLength(int index)
index - The index of the item representing its location in the list.
public void setLength(int index,
long length)
index - The index of the item representing its location in the list.length - The length of the product item in bytes.public boolean equals(java.lang.Object rhs)
public int hashCode()
public java.lang.Object clone()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||