1 17 package org.apache.ws.jaxme.xs.jaxb.impl; 18 19 import org.apache.ws.jaxme.xs.XSAttribute; 20 import org.apache.ws.jaxme.xs.XSElement; 21 import org.apache.ws.jaxme.xs.XSEnumeration; 22 import org.apache.ws.jaxme.xs.XSGroup; 23 import org.apache.ws.jaxme.xs.XSObject; 24 import org.apache.ws.jaxme.xs.XSSchema; 25 import org.apache.ws.jaxme.xs.XSSimpleType; 26 import org.apache.ws.jaxme.xs.XSType; 27 import org.apache.ws.jaxme.xs.impl.XSObjectFactoryImpl; 28 import org.apache.ws.jaxme.xs.parser.XSContext; 29 import org.apache.ws.jaxme.xs.xml.XsEChoice; 30 import org.apache.ws.jaxme.xs.xml.XsEEnumeration; 31 import org.apache.ws.jaxme.xs.xml.XsEList; 32 import org.apache.ws.jaxme.xs.xml.XsERestriction; 33 import org.apache.ws.jaxme.xs.xml.XsESchema; 34 import org.apache.ws.jaxme.xs.xml.XsESequence; 35 import org.apache.ws.jaxme.xs.xml.XsETopLevelSimpleType; 36 import org.apache.ws.jaxme.xs.xml.XsEUnion; 37 import org.apache.ws.jaxme.xs.xml.XsTAll; 38 import org.apache.ws.jaxme.xs.xml.XsTAttribute; 39 import org.apache.ws.jaxme.xs.xml.XsTComplexType; 40 import org.apache.ws.jaxme.xs.xml.XsTElement; 41 import org.apache.ws.jaxme.xs.xml.XsTGroupRef; 42 import org.apache.ws.jaxme.xs.xml.XsTLocalComplexType; 43 import org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType; 44 import org.apache.ws.jaxme.xs.xml.XsTNamedGroup; 45 import org.apache.ws.jaxme.xs.xml.XsTSimpleRestrictionType; 46 import org.xml.sax.SAXException ; 47 48 51 public class JAXBObjectFactoryImpl extends XSObjectFactoryImpl { 52 public XSSimpleType newXSAtomicType(XSType pResultType, XSType pRestrictedType, XsERestriction pRestriction) throws SAXException { 53 return new JAXBSimpleTypeImpl(pResultType, super.newXSAtomicType(pResultType, pRestrictedType, pRestriction)); 54 } 55 56 public XSSimpleType newXSAtomicType(XSType pResultType, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction) throws SAXException { 57 return new JAXBSimpleTypeImpl(pResultType, super.newXSAtomicType(pResultType, pRestrictedType, pRestriction)); 58 } 59 60 public XSAttribute newXSAttribute(XSObject pParent, XsTAttribute pAttribute) throws SAXException { 61 return new JAXBAttributeImpl(pParent, pAttribute); 62 } 63 64 public XSEnumeration newXSEnumeration(XSObject pParent, XsEEnumeration pEnumeration) throws SAXException { 65 return new JAXBEnumerationImpl(pParent, pEnumeration); 66 } 67 68 public XSSchema newXSSchema(XSContext pContext, XsESchema pSchema) throws SAXException { 69 return new JAXBSchemaImpl(pContext, pSchema); 70 } 71 72 public XSGroup newXSGroup(XSObject pParent, XsTAll pAll) throws SAXException { 73 return new JAXBGroupImpl(pParent, pAll); 74 } 75 76 public XSGroup newXSGroup(XSObject pParent, XsEChoice pChoice) throws SAXException { 77 return new JAXBGroupImpl(pParent, pChoice); 78 } 79 80 public XSGroup newXSGroup(XSObject pParent, XsESequence pSequence) throws SAXException { 81 return new JAXBGroupImpl(pParent, pSequence); 82 } 83 84 public XSGroup newXSGroup(XSObject pParent, XsTGroupRef pGroupRef) throws SAXException { 85 return new JAXBGroupImpl(pParent, pGroupRef); 86 } 87 88 public XSGroup newXSGroup(XSObject pParent, XsTNamedGroup pNamedGroup) throws SAXException { 89 return new JAXBGroupImpl(pParent, pNamedGroup); 90 } 91 92 public XSSimpleType newXSListType(XSType pResultType, XsEList pList) throws SAXException { 93 return new JAXBSimpleTypeImpl(pResultType, super.newXSListType(pResultType, pList)); 94 } 95 96 public XSSimpleType newXSListType(XSType pResultType, XSType pRestrictedType, XsERestriction pRestriction) throws SAXException { 97 return new JAXBSimpleTypeImpl(pResultType, super.newXSListType(pResultType, pRestrictedType, pRestriction)); 98 } 99 100 public XSSimpleType newXSListType(XSType pResultType, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction) throws SAXException { 101 return new JAXBSimpleTypeImpl(pResultType, super.newXSListType(pResultType, pRestrictedType, pRestriction)); 102 } 103 104 public XSType newXSType(XSObject pParent, XsETopLevelSimpleType pType) throws SAXException { 105 return new JAXBTypeImpl(pParent, pType); 106 } 107 108 public XSType newXSType(XSObject pParent, XsTComplexType pType) throws SAXException { 109 return new JAXBTypeImpl(pParent, pType); 110 } 111 112 public XSType newXSType(XSObject pParent, XsTLocalComplexType pType) throws SAXException { 113 return new JAXBTypeImpl(pParent, pType); 114 } 115 116 public XSType newXSType(XSObject pParent, XsTLocalSimpleType pType) throws SAXException { 117 return new JAXBTypeImpl(pParent, pType); 118 } 119 120 public XSType newXSType(XSObject pParent, XsTSimpleRestrictionType pType) throws SAXException { 121 return new JAXBTypeImpl(pParent, pType); 122 } 123 124 public XSElement newXSElement(XSObject pParent, XsTElement pElement) throws SAXException { 125 return new JAXBElementImpl(pParent, pElement); 126 } 127 128 public XSSimpleType newXSUnionType(XSType pResultType, XsEUnion pUnion) throws SAXException { 129 return new JAXBSimpleTypeImpl(pResultType, super.newXSUnionType(pResultType, pUnion)); 130 } 131 132 public XSSimpleType newXSUnionType(XSType pResultType, XSType pRestrictedType, XsERestriction pRestriction) throws SAXException { 133 return new JAXBSimpleTypeImpl(pResultType, super.newXSUnionType(pResultType, pRestrictedType, pRestriction)); 134 } 135 136 public XSSimpleType newXSUnionType(XSType pResultType, XSType pRestrictedType, XsTSimpleRestrictionType pRestriction) throws SAXException { 137 return new JAXBSimpleTypeImpl(pResultType, super.newXSUnionType(pResultType, pRestrictedType, pRestriction)); 138 } 139 } 140 | Popular Tags |