1 package org.enhydra.shark.xpdl.elements; 2 3 import org.enhydra.shark.xpdl.XMLAttribute; 4 import org.enhydra.shark.xpdl.XMLComplexElement; 5 import org.enhydra.shark.xpdl.XMLElement; 6 7 8 13 public class ExternalReference extends XMLComplexElement { 14 15 public ExternalReference (XMLElement parent, boolean isRequired) { 16 super(parent, isRequired); 17 } 19 20 protected void fillStructure () { 21 XMLAttribute attrXref=new XMLAttribute(this,"xref", false); XMLAttribute attrLocation=new XMLAttribute(this,"location", true); XMLAttribute attrNamespace=new XMLAttribute(this,"namespace", false); 25 add(attrXref); 26 add(attrLocation); 27 add(attrNamespace); 28 } 29 30 public String getLocation() { 31 return get("location").toValue(); 32 } 33 public void setLocation(String location) { 34 set("location",location); 35 } 36 public String getNamespace() { 37 return get("namespace").toValue(); 38 } 39 public void setNamespace(String namespace) { 40 set("namespace",namespace); 41 } 42 public String getXref() { 43 return get("xref").toValue(); 44 } 45 public void setXref(String xref) { 46 set("xref",xref); 47 } 48 } 49 | Popular Tags |