1 17 package org.apache.ws.jaxme.xs.impl; 18 19 import org.apache.ws.jaxme.xs.XSAtomicType; 20 import org.apache.ws.jaxme.xs.XSType; 21 import org.apache.ws.jaxme.xs.XSUnionType; 22 import org.apache.ws.jaxme.xs.xml.XsGSimpleRestrictionModel; 23 import org.xml.sax.SAXException ; 24 25 28 public class XSUnionTypeRestrictionImpl extends XSSimpleTypeRestrictionImpl implements XSUnionType { 29 private final XSUnionType unionBaseType; 30 31 protected XSUnionTypeRestrictionImpl(XSType pParent, XSType pRestrictedType, XsGSimpleRestrictionModel pRestriction) throws SAXException { 32 super(pParent, pRestrictedType, pRestriction); 33 unionBaseType = pRestrictedType.getSimpleType().getUnionType(); 34 } 35 36 public boolean isUnion() { return true; } 37 38 public XSUnionType getUnionType() { 39 return this; 40 } 41 42 public XSType[] getMemberTypes() { 43 return unionBaseType.getMemberTypes(); 44 } 45 } 46 | Popular Tags |