1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.panels.*; 15 import org.w3c.dom.*; 16 17 20 public class Script extends XMLComplexElement { 21 private XMLAttribute attrType=new XMLAttribute("Type"); private XMLAttribute attrVersion=new XMLAttribute("Version"); private XMLAttribute attrGrammar=new XMLAttribute("Grammar",1); 25 28 public Script () { 29 super(); 30 31 fillStructure (); 32 } 33 34 38 protected void fillStructure () { 39 attrType.setRequired(true); 40 complexStructure.add(attrType); 41 attributes.add(attrType); 42 complexStructure.add(attrVersion); 43 attributes.add(attrVersion); 44 complexStructure.add(attrGrammar); 45 attributes.add(attrGrammar); 46 } 47 48 } 49 | Popular Tags |