|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oodt.cas.filemgr.validation.ScienceDataValidationLayer
public class ScienceDataValidationLayer
Determines the mapping of s to ProductType
s by
reading the ScienceDataCatalog
catalog schema tables concerning parameters and datasets.
Constructor Summary | |
---|---|
ScienceDataValidationLayer(DataSource ds)
|
Method Summary | |
---|---|
void |
addElement(Element element)
Adds the Element to the ValidationLayer. |
void |
addElementToProductType(ProductType productType,
Element element)
Adds the specified element to the ProductType
specified by its productTypeId . |
Element |
getElementById(String elementId)
Gets an element by its String identifier. |
Element |
getElementByName(String elementName)
Gets an element by its String name. |
List<Element> |
getElements()
|
List<Element> |
getElements(ProductType productType)
Returns a List of Element s corresponding to the given
ProductType. |
void |
modifyElement(Element element)
Modifies an existing Element in the ValidationLayer. |
void |
removeElement(Element element)
Removes a metadata Element from the ValidationLayer. |
void |
removeElementFromProductType(ProductType productType,
Element element)
Removes a metadata Element from the specified
productTypeId . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScienceDataValidationLayer(DataSource ds)
Method Detail |
---|
public void addElement(Element element) throws ValidationLayerException
ValidationLayer
Adds the Element
to the ValidationLayer.
addElement
in interface ValidationLayer
element
- The element to add.
ValidationLayerException
- If any error occurs during the add.public void addElementToProductType(ProductType productType, Element element) throws ValidationLayerException
ValidationLayer
Adds the specified element
to the ProductType
specified by its productTypeId
.
addElementToProductType
in interface ValidationLayer
productType
- The ProductType
to associate the metadata Element
with.element
- The Element
to associate with the ProductType.
ValidationLayerException
- If any error occurs.public Element getElementById(String elementId) throws ValidationLayerException
ValidationLayer
getElementById
in interface ValidationLayer
elementId
- The String identifier of the Element
to get.
Element
by its String identifier.
ValidationLayerException
- If any error occurs.public Element getElementByName(String elementName) throws ValidationLayerException
ValidationLayer
getElementByName
in interface ValidationLayer
elementName
- The String name of the Element
to get.
Element
by its String name.
ValidationLayerException
- If any error occurs.public List<Element> getElements() throws ValidationLayerException
getElements
in interface ValidationLayer
List
of all the metadata Element
s in the
ValidationLayer.
ValidationLayerException
- If any error occurs.public List<Element> getElements(ProductType productType)
ValidationLayer
Returns a List
of Element
s corresponding to the given
ProductType.
getElements
in interface ValidationLayer
productType
- The product type to retrieve the metadata Element
s
for.
List
of Element
s corresponding to the given
ProductType.public void modifyElement(Element element) throws ValidationLayerException
ValidationLayer
Modifies an existing Element
in the ValidationLayer.
modifyElement
in interface ValidationLayer
element
- The new Element
data to update.
ValidationLayerException
- If any error occurs.public void removeElement(Element element) throws ValidationLayerException
ValidationLayer
Removes a metadata Element
from the ValidationLayer.
removeElement
in interface ValidationLayer
element
- The element to remove.
ValidationLayerException
- If any error occurs.public void removeElementFromProductType(ProductType productType, Element element) throws ValidationLayerException
ValidationLayer
Removes a metadata Element
from the specified
productTypeId
.
removeElementFromProductType
in interface ValidationLayer
productType
- The ProductType
to remove the association of the
specified element
with.element
- The element whose association will be removed from the
specified ProductType.
ValidationLayerException
- If any error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |