1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.xml.*; 20 import org.xml.sax.SAXException ; 21 22 23 38 public class XsTAttributeGroupImpl extends XsTAnnotatedImpl implements XsTAttributeGroup { 39 private final XsGAttrDecls decls; 40 private final XsAGDefRef defRef; 41 42 protected XsTAttributeGroupImpl(XsObject pParent) { 43 super(pParent); 44 decls = getObjectFactory().newXsGAttrDecls(this); 45 defRef = getObjectFactory().newXsAGDefRef(this); 46 } 47 48 public void setName(XsNCName pName) { 49 defRef.setName(pName); 50 } 51 52 public XsNCName getName() { 53 return defRef.getName(); 54 } 55 56 public void setRef(XsQName pRef) { 57 defRef.setRef(pRef); 58 } 59 60 public void setRef(String pRef) throws SAXException { 61 setRef(asXsQName(pRef)); 62 } 63 64 public XsQName getRef() { 65 return defRef.getRef(); 66 } 67 68 public XsTAttribute createAttribute() { 69 return decls.createAttribute(); 70 } 71 72 public XsTAttribute[] getAttributes() { 73 return decls.getAttributes(); 74 } 75 76 public XsTAttributeGroupRef createAttributeGroup() { 77 return decls.createAttributeGroup(); 78 } 79 80 public XsTAttributeGroupRef[] getAttributeGroups() { 81 return decls.getAttributeGroups(); 82 } 83 84 public XsTWildcard createAnyAttribute() { 85 return decls.createAnyAttribute(); 86 } 87 88 public XsTWildcard getAnyAttribute() { 89 return decls.getAnyAttribute(); 90 } 91 92 public Object [] getAllAttributes() { 93 return decls.getAllAttributes(); 94 } 95 96 public void validate() throws SAXException { 97 super.validate(); 98 defRef.validate(); 99 } 100 } 101 | Popular Tags |