|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.processor.ProductRef
public class ProductRef
The ProductRef class serves as a leightweight information conatiner for products. It contains three
fields:
| Constructor Summary | |
|---|---|
ProductRef(File file)
Constructs a new ProductRef instance with the given product URL. |
|
ProductRef(File file,
String fileFormat,
String typeId)
Constructs a new ProductRef instance with the given product file, file format and producttype ID. |
|
| Method Summary | |
|---|---|
void |
addComponent(ProductRef component)
Adds a component to the ProductRef. |
ProductRef |
getComponentAt(int index)
Returns the component at given index or null if no components are set. |
File |
getFile()
|
String |
getFileFormat()
Returns the file format string. |
String |
getFilePath()
Retrieves the file path of the product or null if no URL is set |
int |
getNumComponents()
Returns the number of components available in the product |
String |
getTypeId()
Returns the product type ID. |
void |
removeComponent(ProductRef component)
Removes the component passed in from the component list. |
void |
setFile(File file)
|
void |
setFileFormat(String fileFormat)
Sets the file format string. |
void |
setTypeId(String typeId)
Sets the type identifier for this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProductRef(File file)
throws IllegalArgumentException
ProductRef instance with the given product URL. File format and product type ID are
initially set to null.
file - the product file
IllegalArgumentException
public ProductRef(File file,
String fileFormat,
String typeId)
ProductRef instance with the given product file, file format and producttype ID.
file - the product filefileFormat - the file formattypeId - the product type ID| Method Detail |
|---|
public File getFile()
public void setFile(File file)
public String getFilePath()
null if no URL is set
public String getTypeId()
nullpublic void setTypeId(String typeId)
public String getFileFormat()
nullpublic void setFileFormat(String fileFormat)
fileFormat - the file format string, can be nullpublic void addComponent(ProductRef component)
ProductRef. Creates the Vector if necessary.
component - the component to be added
IllegalArgumentExceptionpublic void removeComponent(ProductRef component)
component - the component to be removedpublic int getNumComponents()
public ProductRef getComponentAt(int index)
index - the component index
ArrayIndexOutOfBoundsException - if invalid index is supplied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||