1 package org.enhydra.shark.xpdl.elements; 2 3 import org.enhydra.shark.xpdl.XMLAttribute; 4 import org.enhydra.shark.xpdl.XMLComplexElement; 5 6 11 public class Namespace extends XMLComplexElement { 12 13 public Namespace (Namespaces parent) { 14 super(parent, true); 15 } 16 17 protected void fillStructure () { 18 XMLAttribute attrName=new XMLAttribute(this,"Name", true); XMLAttribute attrLocation=new XMLAttribute(this,"location", true); 21 add(attrName); 22 add(attrLocation); 23 } 24 25 public String getName() { 26 return get("Name").toValue(); 27 } 28 public void setName(String name) { 29 set("Name",name); 30 } 31 public String getLocation() { 32 return get("location").toValue(); 33 } 34 public void setLocation(String location) { 35 set("location",location); 36 } 37 38 } 39 | Popular Tags |