1 17 package org.apache.ws.jaxme.xs.jaxb.impl; 18 19 import org.apache.ws.jaxme.xs.XSObject; 20 import org.apache.ws.jaxme.xs.impl.XSUtil; 21 import org.apache.ws.jaxme.xs.impl.XSWildcardImpl; 22 import org.apache.ws.jaxme.xs.jaxb.JAXBProperty; 23 import org.apache.ws.jaxme.xs.jaxb.JAXBSchemaBindings; 24 import org.apache.ws.jaxme.xs.jaxb.JAXBWildcard; 25 import org.apache.ws.jaxme.xs.jaxb.JAXBXsSchema; 26 import org.apache.ws.jaxme.xs.xml.XsTWildcard; 27 import org.xml.sax.SAXException ; 28 29 30 33 public class JAXBWildcardImpl extends XSWildcardImpl implements JAXBWildcard { 34 private JAXBProperty jaxbProperty; 35 36 protected JAXBWildcardImpl(XSObject pParent, XsTWildcard pBaseObject) { 37 super(pParent, pBaseObject); 38 } 39 40 public JAXBProperty getJAXBProperty() { return jaxbProperty; } 41 42 public void validate() throws SAXException { 43 if (isValidated()) { 44 return; 45 } else { 46 super.validate(); 47 jaxbProperty = (JAXBProperty) XSUtil.getSingleAppinfo(getAnnotations(), JAXBProperty.class); 48 } 49 } 50 51 public JAXBSchemaBindings getJAXBSchemaBindings() { 52 return ((JAXBXsSchema) getXsObject().getXsESchema()).getJAXBSchemaBindings(); 53 } 54 } 55 | Popular Tags |