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 42 public class XsEKeyrefImpl extends XsTKeybaseImpl implements XsEKeyref { 43 private XsQName refer; 44 45 protected XsEKeyrefImpl(XsObject pParent) { 46 super(pParent); 47 } 48 49 public void setRefer(XsQName pRefer) { 50 refer = pRefer; 51 } 52 53 public void setRefer(String pRefer) throws SAXException { 54 setRefer(asXsQName(pRefer)); 55 } 56 57 public XsQName getRefer() { 58 return refer; 59 } 60 61 public void validate() { 62 super.validate(); 63 if (getRefer() == null) { 64 throw new NullPointerException ("Missing attribute: 'refer'"); 65 } 66 } 67 } 68 | Popular Tags |