KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > elements > ExternalPackage


1 package org.enhydra.shark.xpdl.elements;
2
3 import org.enhydra.shark.xpdl.XMLAttribute;
4 import org.enhydra.shark.xpdl.XMLComplexElement;
5
6 /**
7  * Represents coresponding element from XPDL schema.
8  *
9  * @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(this); // min=0
20

21       add(attrHref);
22       add(refExtendedAttributes);
23    }
24
25    public String JavaDoc getHref() {
26       return get("href").toValue();
27    }
28    public void setHref(String JavaDoc href) {
29       set("href",href);
30    }
31    public ExtendedAttributes getExtendedAttributes() {
32       return (ExtendedAttributes)get("ExtendedAttributes");
33    }
34 }
35
Popular Tags