1 package org.enhydra.shark.xpdl.elements; 2 3 import org.enhydra.shark.xpdl.XMLAttribute; 4 import org.enhydra.shark.xpdl.XMLCollectionElement; 5 6 11 public class Application extends XMLCollectionElement { 12 13 public Application(Applications aps) { 14 super(aps, true); 15 } 16 17 protected void fillStructure() { 18 Description refDescription = new Description(this); ApplicationTypes refChoice = new ApplicationTypes(this); 22 ExtendedAttributes refExtendedAttributes = new ExtendedAttributes(this); XMLAttribute attrName = new XMLAttribute(this, "Name", false); 24 25 super.fillStructure(); 26 add(attrName); 28 add(refDescription); 29 add(refChoice); 30 add(refExtendedAttributes); 31 } 32 33 public String getName() { 34 return get("Name").toValue(); 35 } 36 public void setName(String name) { 37 set("Name",name); 38 } 39 public String getDescription() { 40 return get("Description").toValue(); 41 } 42 public void setDescription(String description) { 43 set("Description",description); 44 } 45 public ApplicationTypes getApplicationTypes() { 46 return (ApplicationTypes)get("Choice"); 47 } 48 public ExtendedAttributes getExtendedAttributes() { 49 return (ExtendedAttributes)get("ExtendedAttributes"); 50 } 51 } | Popular Tags |