1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.parser.impl.LocSAXException; 20 import org.apache.ws.jaxme.xs.xml.*; 21 import org.xml.sax.SAXException ; 22 23 24 45 public class XsENotationImpl extends XsTAnnotatedImpl implements XsENotation { 46 protected XsENotationImpl(XsObject pParent) { 47 super(pParent); 48 } 49 50 private XsNCName name; 51 private XsToken publicId; 52 private XsAnyURI systemId; 53 54 public void setName(XsNCName pName) { 55 name = pName; 56 } 57 58 public XsNCName getName() { 59 return name; 60 } 61 62 public void setPublic(XsToken pPublic) { 63 publicId = pPublic; 64 } 65 66 public XsToken getPublic() { 67 return publicId; 68 } 69 70 public void setSystem(XsAnyURI pSystem) { 71 systemId = pSystem; 72 } 73 74 public XsAnyURI getSystem() { 75 return systemId; 76 } 77 78 public void validate() throws SAXException { 79 super.validate(); 80 if (getName() == null) { 81 throw new LocSAXException("Missing attribute: 'name'", getLocator()); 82 } 83 if (getPublic() == null) { 84 throw new LocSAXException("Missing attribute: 'public'", getLocator()); 85 } 86 } 87 } 88 | Popular Tags |