1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import javax.swing.*; 14 15 import org.enhydra.jawe.xml.*; 16 import org.enhydra.jawe.xml.panels.*; 17 18 23 public class ExternalReference extends XMLComplexElement { 24 private XMLAttribute attrXref=new XMLAttribute("xref"); private XMLAttribute attrLocation=new XMLAttribute("location",1); private XMLAttribute attrNamespace=new XMLAttribute("namespace",1); 28 31 public ExternalReference () { 32 super(); 33 34 fillStructure(); 36 } 37 38 42 protected void fillStructure () { 43 complexStructure.add(attrXref); 44 attributes.add(attrXref); 45 attrLocation.setRequired(true); 46 complexStructure.add(attrLocation); 47 attributes.add(attrLocation); 48 complexStructure.add(attrNamespace); 49 attributes.add(attrNamespace); 50 } 51 52 } 53 | Popular Tags |