01: package org.enhydra.shark.xpdl.elements;
02:
03: import org.enhydra.shark.xpdl.XMLAttribute;
04: import org.enhydra.shark.xpdl.XMLComplexElement;
05:
06: /**
07: * Represents coresponding element from XPDL schema.
08: *
09: * @author Sasa Bojanic
10: */
11: public class ExternalPackage extends XMLComplexElement {
12:
13: public ExternalPackage(ExternalPackages parent) {
14: super (parent, true);
15: }
16:
17: protected void fillStructure() {
18: XMLAttribute attrHref = new XMLAttribute(this , "href", true);
19: ExtendedAttributes refExtendedAttributes = new ExtendedAttributes(
20: this ); // min=0
21:
22: add(attrHref);
23: add(refExtendedAttributes);
24: }
25:
26: public String getHref() {
27: return get("href").toValue();
28: }
29:
30: public void setHref(String href) {
31: set("href", href);
32: }
33:
34: public ExtendedAttributes getExtendedAttributes() {
35: return (ExtendedAttributes) get("ExtendedAttributes");
36: }
37: }
|