1 17 package org.apache.ws.jaxme.xs.xml.impl; 18 19 import org.apache.ws.jaxme.xs.xml.*; 20 import org.xml.sax.SAXException ; 21 22 23 78 public class XsERestrictionImpl extends XsTAnnotatedImpl implements XsERestriction { 79 private XsQName base; 80 81 protected XsERestrictionImpl(XsObject pParent) { 82 super(pParent); 83 } 84 85 private XsGSimpleRestrictionModel impl = getObjectFactory().newXsGSimpleRestrictionModel(this); 86 87 public void setBase(XsQName pBase) { 88 if (getSimpleType() != null) { 89 throw new IllegalStateException ("The 'base' attribute and the inner 'simpleType' child element are mutually exclusive,"); 90 } 91 base = pBase; 92 } 93 94 public void setBase(String pBase) throws SAXException { 95 setBase(asXsQName(pBase)); 96 } 97 98 public XsQName getBase() { 99 return base; 100 } 101 102 public XsTLocalSimpleType createSimpleType() throws SAXException { 103 if (base != null) { 104 throw new IllegalStateException ("The 'base' attribute and the inner 'simpleType' child element are mutually exclusive,"); 105 } 106 return impl.createSimpleType(); 107 } 108 109 public XsTLocalSimpleType getSimpleType() { 110 return impl.getSimpleType(); 111 } 112 113 public XsEMinExclusive createMinExclusive() throws SAXException { 114 return impl.createMinExclusive(); 115 } 116 117 public XsEMinExclusive getMinExclusive() { 118 return impl.getMinExclusive(); 119 } 120 121 public XsEMinInclusive createMinInclusive() throws SAXException { 122 return impl.createMinInclusive(); 123 } 124 125 public XsEMinInclusive getMinInclusive() { 126 return impl.getMinInclusive(); 127 } 128 129 public XsEMaxExclusive createMaxExclusive() throws SAXException { 130 return impl.createMaxExclusive(); 131 } 132 133 public XsEMaxExclusive getMaxExclusive() { 134 return impl.getMaxExclusive(); 135 } 136 137 public XsEMaxInclusive createMaxInclusive() throws SAXException { 138 return impl.createMaxInclusive(); 139 } 140 141 public XsEMaxInclusive getMaxInclusive() { 142 return impl.getMaxInclusive(); 143 } 144 145 public XsETotalDigits createTotalDigits() throws SAXException { 146 return impl.createTotalDigits(); 147 } 148 149 public XsETotalDigits getTotalDigits() { 150 return impl.getTotalDigits(); 151 } 152 153 public XsEFractionDigits createFractionDigits() throws SAXException { 154 return impl.createFractionDigits(); 155 } 156 157 public XsEFractionDigits getFractionDigits() { 158 return impl.getFractionDigits(); 159 } 160 161 public XsELength createLength() throws SAXException { 162 return impl.createLength(); 163 } 164 165 public XsELength getLength() { 166 return impl.getLength(); 167 } 168 169 public XsEMinLength createMinLength() throws SAXException { 170 return impl.createMinLength(); 171 } 172 173 public XsEMinLength getMinLength() { 174 return impl.getMinLength(); 175 } 176 177 public XsEMaxLength createMaxLength() throws SAXException { 178 return impl.createMaxLength(); 179 } 180 181 public XsEMaxLength getMaxLength() { 182 return impl.getMaxLength(); 183 } 184 185 public XsEWhiteSpace createWhiteSpace() throws SAXException { 186 return impl.createWhiteSpace(); 187 } 188 189 public XsEWhiteSpace getWhiteSpace() { 190 return impl.getWhiteSpace(); 191 } 192 193 public XsEPattern createPattern() throws SAXException { 194 return impl.createPattern(); 195 } 196 197 public XsEPattern[] getPatterns() { 198 return impl.getPatterns(); 199 } 200 201 public XsEEnumeration createEnumeration() throws SAXException { 202 return impl.createEnumeration(); 203 } 204 205 public XsEEnumeration[] getEnumerations() { 206 return impl.getEnumerations(); 207 } 208 209 public boolean hasFacets() { 210 return impl.hasFacets(); 211 } 212 213 public XsTFacetBase[] getFacets() { 214 return impl.getFacets(); 215 } 216 } 217 | Popular Tags |