1 17 package org.apache.ws.jaxme.xs.jaxb.impl; 18 19 import org.apache.ws.jaxme.xs.XSType; 20 import org.apache.ws.jaxme.xs.impl.XSSimpleContentTypeImpl; 21 import org.apache.ws.jaxme.xs.impl.XSUtil; 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.JAXBSimpleContentType; 25 import org.apache.ws.jaxme.xs.xml.XsTComplexType; 26 import org.xml.sax.SAXException ; 27 28 31 public class JAXBSimpleContentTypeImpl extends XSSimpleContentTypeImpl implements JAXBSimpleContentType { 32 private final JAXBProperty jaxbProperty; 33 34 36 protected JAXBSimpleContentTypeImpl(XSType pComplexType, XSType pSimpleType, 37 XsTComplexType pBaseType) throws SAXException { 38 super(pComplexType, pSimpleType, pBaseType); 39 jaxbProperty = (JAXBProperty) XSUtil.getSingleAppinfo(pComplexType.getAnnotations(), JAXBProperty.class); 40 } 41 42 public JAXBSchemaBindings getJAXBSchemaBindings() { 43 return ((JAXBXsSchemaImpl) getBaseType().getXsESchema()).getJAXBSchemaBindings(); 44 } 45 public JAXBProperty getJAXBProperty() { return jaxbProperty; } 46 } 47 | Popular Tags |