Package gov.usgs.earthquake.eids
Interface ProductCreator
-
- All Known Implementing Classes:
EQMessageProductCreator
,QuakemlProductCreator
public interface ProductCreator
Interface used by the EIDSInputWedge to create products from files. Parse a file (or directory) into a list of products.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Product>
getProducts(java.io.File file)
Parse product(s) from a file or directory.boolean
isValidate()
void
setValidate(boolean validate)
Enable validation during getProducts method.
-
-
-
Method Detail
-
getProducts
java.util.List<Product> getProducts(java.io.File file) throws java.lang.Exception
Parse product(s) from a file or directory.- Parameters:
file
- file or directory.- Returns:
- list of parsed products.
- Throws:
java.lang.Exception
- if error occurs
-
isValidate
boolean isValidate()
- Returns:
- whether product creator is currently validating.
-
setValidate
void setValidate(boolean validate)
Enable validation during getProducts method.- Parameters:
validate
- boolean to enable/disable- Throws:
java.lang.IllegalArgumentException
- if creator doesn't support validation.
-
-