|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPartHandler
Interface for custom handling of parts, when display and storage of a part is out of the ordinary. possible to generalize to a customization for relations, but right now is focused on custom owned attributes
| Field Summary | |
|---|---|
static String |
FULL_XML
constant for indicating that default XML should be generated for all custom parts if they have no saved settings |
static Map |
NO_PARAMETERS
Special Case for functions that take no parameters as an alternative for passing in null. |
| Method Summary | |
|---|---|
void |
addXML(Attribute attrib,
org.dom4j.Element root,
ControllerRequest request)
Add any necessary xml attributes and elements to root for this attribute. |
Object |
clone()
Public implementation of the Clone object. |
void |
clone(Attribute existing,
Attribute clone)
Clone data from existing to clone. |
void |
delete(Attribute attribute)
Delete a part. |
Transition |
getEditTransition(Map params)
Get the part 'edit' transition. |
String[] |
getInsertStatements(AbstractNodeExportSupport support,
DBObject attribute)
|
Output |
getViewComment(Map params)
Retrieve the view comment as an output. |
Transition |
getViewTransition(Map params)
Get the View Transition. |
boolean |
isNeededInFullXML()
flag as to whether this attribute is required to make sense of XML. |
void |
parseXML(org.dom4j.Element elem,
Attribute attrib,
Map allNodeMap,
ControllerRequest request)
Parse xml into this attribute format. |
void |
saveInput(Input key)
given an input, save the value in the custom manner. |
boolean |
validate(String key,
String value)
|
| Field Detail |
|---|
static final Map NO_PARAMETERS
static final String FULL_XML
| Method Detail |
|---|
Transition getViewTransition(Map params)
throws DBException
params - map of ControllerRequest params.
DBException - upon error.
Transition getEditTransition(Map params)
throws DBException
params - map of ControllerRequest params.
DBException - upon error.
Output getViewComment(Map params)
throws DBException
params - map of ControllerRequest params.
DBException - upon Output construction error.
void addXML(Attribute attrib,
org.dom4j.Element root,
ControllerRequest request)
throws DBException
request - ControllerRequest the ControllerRequest object.attrib - The attribute value for the part.root - The XML Element to add for the part.
DBException - upon database error.
void parseXML(org.dom4j.Element elem,
Attribute attrib,
Map allNodeMap,
ControllerRequest request)
throws DBException
request - ControllerRequest the ControllerRequest object.allNodeMap - ?attrib - the specifying format.elem - The XML Element we're parsing.
DBException - upon database error.
void clone(Attribute existing,
Attribute clone)
throws DBException
existing - The source attribute.clone - The target Attribute.
DBException - upon database error.
void delete(Attribute attribute)
throws DBException
attribute - Attribute the attribute to delete.
DBException - upon database error.
Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionObject.clone()
boolean validate(String key,
String value)
void saveInput(Input key)
throws DBException
DBException
String[] getInsertStatements(AbstractNodeExportSupport support,
DBObject attribute)
throws DBException
DBExceptionboolean isNeededInFullXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||