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 43 public class XsEIncludeImpl extends XsTAnnotatedImpl implements XsEInclude { 44 private XsAnyURI schemaLocation; 45 46 protected XsEIncludeImpl(XsObject pParent) { 47 super(pParent); 48 } 49 50 public void setSchemaLocation(XsAnyURI pSchemaLocation) { 51 schemaLocation = pSchemaLocation; 52 } 53 54 public XsAnyURI getSchemaLocation() { 55 return schemaLocation; 56 } 57 58 public void validate() throws SAXException { 59 super.validate(); 60 if (schemaLocation == null) { 61 throw new LocSAXException("Missing attribute: 'schemaLocation'", getLocator()); 62 } 63 } 64 } 65 | Popular Tags |