1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.xml.XsObject; 20 import org.apache.ws.jaxme.xs.xml.XsQName; 21 import org.apache.ws.jaxme.xs.xml.XsTAttributeGroupRef; 22 import org.xml.sax.SAXException ; 23 24 25 43 public class XsTAttributeGroupRefImpl extends XsTAnnotatedImpl implements XsTAttributeGroupRef { 44 private XsQName ref; 45 46 protected XsTAttributeGroupRefImpl(XsObject pParent) { 47 super(pParent); 48 } 49 50 public void setRef(XsQName pRef) { ref = pRef; } 51 public void setRef(String pRef) throws SAXException { 52 setRef(asXsQName(pRef)); 53 } 54 public XsQName getRef() { return ref; } 55 public void validate() { 56 if (ref == null) { 57 throw new NullPointerException ("Missing attribute: 'ref'"); 58 } 59 } 60 } 61 | Popular Tags |