01: package org.enhydra.jawe;
02:
03: import java.util.List;
04:
05: import org.enhydra.shark.xpdl.XMLCollection;
06: import org.enhydra.shark.xpdl.XMLElement;
07: import org.enhydra.shark.xpdl.elements.Package;
08:
09: /**
10: * JaWE component interface.
11: *
12: * @author Sasa Bojanic
13: * @author Miroslav Popov
14: */
15: public interface JaWEComponent {
16:
17: public static final String MAIN_COMPONENT = "MAIN";
18: public static final String SPECIAL_COMPONENT = "SPECIAL";
19: public static final String TREE_COMPONENT = "TREE";
20: public static final String OTHER_COMPONENT = "OTHER";
21: public static final String UPPER_STATUS_COMPONENT = "UPPER_STATUS";
22: public static final String LOWER_STATUS_COMPONENT = "LOWER_STATUS";
23:
24: JaWEComponentSettings getSettings();
25:
26: JaWEComponentView getView();
27:
28: String getName();
29:
30: String getType();
31:
32: public void setType(String type);
33:
34: boolean adjustXPDL(Package pkg);
35:
36: // returns a list of ValidationError elements, or null if there are no errors
37: List checkValidity(XMLElement el, boolean fullCheck);
38:
39: boolean canCreateElement(XMLCollection col);
40:
41: boolean canInsertElement(XMLCollection col, XMLElement el);
42:
43: public boolean canModifyElement(XMLElement el);
44:
45: public boolean canRemoveElement(XMLCollection col, XMLElement el);
46:
47: public boolean canDuplicateElement(XMLCollection col, XMLElement el);
48:
49: public boolean canRepositionElement(XMLCollection col, XMLElement el);
50:
51: public void setUpdateInProgress(boolean inProgress);
52:
53: public boolean isUpdateInProgress();
54: }
|