|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationLayer
The Validation Layer for the File Manager, allowing Element
s to be
mapped to ProductType
s.
Method Summary | |
---|---|
void |
addElement(Element element)
Adds the Element to the ValidationLayer. |
void |
addElementToProductType(ProductType type,
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 type)
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 type,
Element element)
Removes a metadata Element from the specified
productTypeId . |
Method Detail |
---|
void addElement(Element element) throws ValidationLayerException
Adds the Element
to the ValidationLayer.
element
- The element to add.
ValidationLayerException
- If any error occurs during the add.void modifyElement(Element element) throws ValidationLayerException
Modifies an existing Element
in the ValidationLayer.
element
- The new Element
data to update.
ValidationLayerException
- If any error occurs.void removeElement(Element element) throws ValidationLayerException
Removes a metadata Element
from the ValidationLayer.
element
- The element to remove.
ValidationLayerException
- If any error occurs.void addElementToProductType(ProductType type, Element element) throws ValidationLayerException
Adds the specified element
to the ProductType
specified by its productTypeId
.
type
- The ProductType
to associate the metadata Element
with.element
- The Element
to associate with the ProductType.
ValidationLayerException
- If any error occurs.void removeElementFromProductType(ProductType type, Element element) throws ValidationLayerException
Removes a metadata Element
from the specified
productTypeId
.
type
- 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.List<Element> getElements(ProductType type) throws ValidationLayerException
Returns a List
of Element
s corresponding to the given
ProductType.
type
- The product type to retrieve the metadata Element
s
for.
List
of Element
s corresponding to the given
ProductType.
ValidationLayerException
- If any error occurs.List<Element> getElements() throws ValidationLayerException
List
of all the metadata Element
s in the
ValidationLayer.
ValidationLayerException
- If any error occurs.Element getElementById(String elementId) throws ValidationLayerException
elementId
- The String identifier of the Element
to get.
Element
by its String identifier.
ValidationLayerException
- If any error occurs.Element getElementByName(String elementName) throws ValidationLayerException
elementName
- The String name of the Element
to get.
Element
by its String name.
ValidationLayerException
- If any error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |