Debian Codegraph @

plugins/org.eclipse.xsd/src/org/eclipse/xsd/impl/XSDFactoryImpl.java

raw
1 /**
2 * Copyright (c) 2002-2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v2.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v20.html
7 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 */
11 package org.eclipse.xsd.impl;
12
13
14 import org.w3c.dom.Attr;
15 import org.w3c.dom.Document;
16 import org.w3c.dom.Element;
17 import org.w3c.dom.Node;
18
19 import org.eclipse.emf.ecore.EClass;
20 import org.eclipse.emf.ecore.EDataType;
21 import org.eclipse.emf.ecore.EObject;
22 import org.eclipse.emf.ecore.EPackage;
23
24 import org.eclipse.emf.ecore.impl.EFactoryImpl;
25
26 import org.eclipse.emf.ecore.plugin.EcorePlugin;
27
28 import org.eclipse.xsd.*;
29
30
31 /**
32 * <!-- begin-user-doc -->
33 * An implementation of the model <b>Factory</b>.
34 * <!-- end-user-doc -->
35 * @generated
36 */
37 public class XSDFactoryImpl extends EFactoryImpl implements XSDFactory
38 {
39 /**
40 * Creates the default factory implementation.
41 * <!-- begin-user-doc -->
42 * <!-- end-user-doc -->
43 * @generated
44 */
45 public static XSDFactory init()
46 {
47 try
48 {
49 XSDFactory theXSDFactory = (XSDFactory)EPackage.Registry.INSTANCE.getEFactory(XSDPackage.eNS_URI);
50 if (theXSDFactory != null)
51 {
52 return theXSDFactory;
53 }
54 }
55 catch (Exception exception)
56 {
57 EcorePlugin.INSTANCE.log(exception);
58 }
59 return new XSDFactoryImpl();
60 }
61
62 /**
63 * Creates an instance of the factory.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 public XSDFactoryImpl()
69 {
70 super();
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 @Override
79 public EObject create(EClass eClass)
80 {
81 switch (eClass.getClassifierID())
82 {
83 case XSDPackage.XSD_ANNOTATION: return createXSDAnnotation();
84 case XSDPackage.XSD_ATTRIBUTE_DECLARATION: return createXSDAttributeDeclaration();
85 case XSDPackage.XSD_ATTRIBUTE_GROUP_DEFINITION: return createXSDAttributeGroupDefinition();
86 case XSDPackage.XSD_ATTRIBUTE_USE: return createXSDAttributeUse();
87 case XSDPackage.XSD_BOUNDED_FACET: return createXSDBoundedFacet();
88 case XSDPackage.XSD_CARDINALITY_FACET: return createXSDCardinalityFacet();
89 case XSDPackage.XSD_COMPLEX_TYPE_DEFINITION: return createXSDComplexTypeDefinition();
90 case XSDPackage.XSD_DIAGNOSTIC: return createXSDDiagnostic();
91 case XSDPackage.XSD_ELEMENT_DECLARATION: return createXSDElementDeclaration();
92 case XSDPackage.XSD_ENUMERATION_FACET: return createXSDEnumerationFacet();
93 case XSDPackage.XSD_FRACTION_DIGITS_FACET: return createXSDFractionDigitsFacet();
94 case XSDPackage.XSD_IDENTITY_CONSTRAINT_DEFINITION: return createXSDIdentityConstraintDefinition();
95 case XSDPackage.XSD_IMPORT: return createXSDImport();
96 case XSDPackage.XSD_INCLUDE: return createXSDInclude();
97 case XSDPackage.XSD_LENGTH_FACET: return createXSDLengthFacet();
98 case XSDPackage.XSD_MAX_EXCLUSIVE_FACET: return createXSDMaxExclusiveFacet();
99 case XSDPackage.XSD_MAX_INCLUSIVE_FACET: return createXSDMaxInclusiveFacet();
100 case XSDPackage.XSD_MAX_LENGTH_FACET: return createXSDMaxLengthFacet();
101 case XSDPackage.XSD_MIN_EXCLUSIVE_FACET: return createXSDMinExclusiveFacet();
102 case XSDPackage.XSD_MIN_INCLUSIVE_FACET: return createXSDMinInclusiveFacet();
103 case XSDPackage.XSD_MIN_LENGTH_FACET: return createXSDMinLengthFacet();
104 case XSDPackage.XSD_MODEL_GROUP: return createXSDModelGroup();
105 case XSDPackage.XSD_MODEL_GROUP_DEFINITION: return createXSDModelGroupDefinition();
106 case XSDPackage.XSD_NOTATION_DECLARATION: return createXSDNotationDeclaration();
107 case XSDPackage.XSD_NUMERIC_FACET: return createXSDNumericFacet();
108 case XSDPackage.XSD_ORDERED_FACET: return createXSDOrderedFacet();
109 case XSDPackage.XSD_PARTICLE: return createXSDParticle();
110 case XSDPackage.XSD_PATTERN_FACET: return createXSDPatternFacet();
111 case XSDPackage.XSD_REDEFINE: return createXSDRedefine();
112 case XSDPackage.XSD_SCHEMA: return createXSDSchema();
113 case XSDPackage.XSD_SIMPLE_TYPE_DEFINITION: return createXSDSimpleTypeDefinition();
114 case XSDPackage.XSD_TOTAL_DIGITS_FACET: return createXSDTotalDigitsFacet();
115 case XSDPackage.XSD_WHITE_SPACE_FACET: return createXSDWhiteSpaceFacet();
116 case XSDPackage.XSD_WILDCARD: return createXSDWildcard();
117 case XSDPackage.XSD_XPATH_DEFINITION: return createXSDXPathDefinition();
118 default:
119 throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
120 }
121 }
122
123 /**
124 * <!-- begin-user-doc -->
125 * <!-- end-user-doc -->
126 * @generated
127 */
128 @Override
129 public Object createFromString(EDataType eDataType, String initialValue)
130 {
131 switch (eDataType.getClassifierID())
132 {
133 case XSDPackage.XSD_ATTRIBUTE_USE_CATEGORY:
134 return createXSDAttributeUseCategoryFromString(eDataType, initialValue);
135 case XSDPackage.XSD_CARDINALITY:
136 return createXSDCardinalityFromString(eDataType, initialValue);
137 case XSDPackage.XSD_COMPLEX_FINAL:
138 return createXSDComplexFinalFromString(eDataType, initialValue);
139 case XSDPackage.XSD_COMPOSITOR:
140 return createXSDCompositorFromString(eDataType, initialValue);
141 case XSDPackage.XSD_CONSTRAINT:
142 return createXSDConstraintFromString(eDataType, initialValue);
143 case XSDPackage.XSD_CONTENT_TYPE_CATEGORY:
144 return createXSDContentTypeCategoryFromString(eDataType, initialValue);
145 case XSDPackage.XSD_DERIVATION_METHOD:
146 return createXSDDerivationMethodFromString(eDataType, initialValue);
147 case XSDPackage.XSD_DIAGNOSTIC_SEVERITY:
148 return createXSDDiagnosticSeverityFromString(eDataType, initialValue);
149 case XSDPackage.XSD_DISALLOWED_SUBSTITUTIONS:
150 return createXSDDisallowedSubstitutionsFromString(eDataType, initialValue);
151 case XSDPackage.XSD_FORM:
152 return createXSDFormFromString(eDataType, initialValue);
153 case XSDPackage.XSD_IDENTITY_CONSTRAINT_CATEGORY:
154 return createXSDIdentityConstraintCategoryFromString(eDataType, initialValue);
155 case XSDPackage.XSD_NAMESPACE_CONSTRAINT_CATEGORY:
156 return createXSDNamespaceConstraintCategoryFromString(eDataType, initialValue);
157 case XSDPackage.XSD_ORDERED:
158 return createXSDOrderedFromString(eDataType, initialValue);
159 case XSDPackage.XSD_PROCESS_CONTENTS:
160 return createXSDProcessContentsFromString(eDataType, initialValue);
161 case XSDPackage.XSD_PROHIBITED_SUBSTITUTIONS:
162 return createXSDProhibitedSubstitutionsFromString(eDataType, initialValue);
163 case XSDPackage.XSD_SIMPLE_FINAL:
164 return createXSDSimpleFinalFromString(eDataType, initialValue);
165 case XSDPackage.XSD_SUBSTITUTION_GROUP_EXCLUSIONS:
166 return createXSDSubstitutionGroupExclusionsFromString(eDataType, initialValue);
167 case XSDPackage.XSD_VARIETY:
168 return createXSDVarietyFromString(eDataType, initialValue);
169 case XSDPackage.XSD_WHITE_SPACE:
170 return createXSDWhiteSpaceFromString(eDataType, initialValue);
171 case XSDPackage.XSD_XPATH_VARIETY:
172 return createXSDXPathVarietyFromString(eDataType, initialValue);
173 case XSDPackage.DOM_ATTR:
174 return createDOMAttrFromString(eDataType, initialValue);
175 case XSDPackage.DOM_DOCUMENT:
176 return createDOMDocumentFromString(eDataType, initialValue);
177 case XSDPackage.DOM_ELEMENT:
178 return createDOMElementFromString(eDataType, initialValue);
179 case XSDPackage.DOM_NODE:
180 return createDOMNodeFromString(eDataType, initialValue);
181 case XSDPackage.VALUE:
182 return createValueFromString(eDataType, initialValue);
183 default:
184 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
185 }
186 }
187
188 /**
189 * <!-- begin-user-doc -->
190 * <!-- end-user-doc -->
191 * @generated
192 */
193 @Override
194 public String convertToString(EDataType eDataType, Object instanceValue)
195 {
196 switch (eDataType.getClassifierID())
197 {
198 case XSDPackage.XSD_ATTRIBUTE_USE_CATEGORY:
199 return convertXSDAttributeUseCategoryToString(eDataType, instanceValue);
200 case XSDPackage.XSD_CARDINALITY:
201 return convertXSDCardinalityToString(eDataType, instanceValue);
202 case XSDPackage.XSD_COMPLEX_FINAL:
203 return convertXSDComplexFinalToString(eDataType, instanceValue);
204 case XSDPackage.XSD_COMPOSITOR:
205 return convertXSDCompositorToString(eDataType, instanceValue);
206 case XSDPackage.XSD_CONSTRAINT:
207 return convertXSDConstraintToString(eDataType, instanceValue);
208 case XSDPackage.XSD_CONTENT_TYPE_CATEGORY:
209 return convertXSDContentTypeCategoryToString(eDataType, instanceValue);
210 case XSDPackage.XSD_DERIVATION_METHOD:
211 return convertXSDDerivationMethodToString(eDataType, instanceValue);
212 case XSDPackage.XSD_DIAGNOSTIC_SEVERITY:
213 return convertXSDDiagnosticSeverityToString(eDataType, instanceValue);
214 case XSDPackage.XSD_DISALLOWED_SUBSTITUTIONS:
215 return convertXSDDisallowedSubstitutionsToString(eDataType, instanceValue);
216 case XSDPackage.XSD_FORM:
217 return convertXSDFormToString(eDataType, instanceValue);
218 case XSDPackage.XSD_IDENTITY_CONSTRAINT_CATEGORY:
219 return convertXSDIdentityConstraintCategoryToString(eDataType, instanceValue);
220 case XSDPackage.XSD_NAMESPACE_CONSTRAINT_CATEGORY:
221 return convertXSDNamespaceConstraintCategoryToString(eDataType, instanceValue);
222 case XSDPackage.XSD_ORDERED:
223 return convertXSDOrderedToString(eDataType, instanceValue);
224 case XSDPackage.XSD_PROCESS_CONTENTS:
225 return convertXSDProcessContentsToString(eDataType, instanceValue);
226 case XSDPackage.XSD_PROHIBITED_SUBSTITUTIONS:
227 return convertXSDProhibitedSubstitutionsToString(eDataType, instanceValue);
228 case XSDPackage.XSD_SIMPLE_FINAL:
229 return convertXSDSimpleFinalToString(eDataType, instanceValue);
230 case XSDPackage.XSD_SUBSTITUTION_GROUP_EXCLUSIONS:
231 return convertXSDSubstitutionGroupExclusionsToString(eDataType, instanceValue);
232 case XSDPackage.XSD_VARIETY:
233 return convertXSDVarietyToString(eDataType, instanceValue);
234 case XSDPackage.XSD_WHITE_SPACE:
235 return convertXSDWhiteSpaceToString(eDataType, instanceValue);
236 case XSDPackage.XSD_XPATH_VARIETY:
237 return convertXSDXPathVarietyToString(eDataType, instanceValue);
238 case XSDPackage.DOM_ATTR:
239 return convertDOMAttrToString(eDataType, instanceValue);
240 case XSDPackage.DOM_DOCUMENT:
241 return convertDOMDocumentToString(eDataType, instanceValue);
242 case XSDPackage.DOM_ELEMENT:
243 return convertDOMElementToString(eDataType, instanceValue);
244 case XSDPackage.DOM_NODE:
245 return convertDOMNodeToString(eDataType, instanceValue);
246 case XSDPackage.VALUE:
247 return convertValueToString(eDataType, instanceValue);
248 default:
249 throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
250 }
251 }
252
253 /**
254 * <!-- begin-user-doc -->
255 * <!-- end-user-doc -->
256 * @generated
257 */
258 @Override
259 public XSDAnnotation createXSDAnnotation()
260 {
261 XSDAnnotationImpl xsdAnnotation = new XSDAnnotationImpl();
262 return xsdAnnotation;
263 }
264
265 /**
266 * <!-- begin-user-doc -->
267 * <!-- end-user-doc -->
268 * @generated
269 */
270 @Override
271 public XSDAttributeDeclaration createXSDAttributeDeclaration()
272 {
273 XSDAttributeDeclarationImpl xsdAttributeDeclaration = new XSDAttributeDeclarationImpl();
274 return xsdAttributeDeclaration;
275 }
276
277 /**
278 * <!-- begin-user-doc -->
279 * <!-- end-user-doc -->
280 * @generated
281 */
282 @Override
283 public XSDAttributeGroupDefinition createXSDAttributeGroupDefinition()
284 {
285 XSDAttributeGroupDefinitionImpl xsdAttributeGroupDefinition = new XSDAttributeGroupDefinitionImpl();
286 return xsdAttributeGroupDefinition;
287 }
288
289 /**
290 * <!-- begin-user-doc -->
291 * <!-- end-user-doc -->
292 * @generated
293 */
294 @Override
295 public XSDAttributeUse createXSDAttributeUse()
296 {
297 XSDAttributeUseImpl xsdAttributeUse = new XSDAttributeUseImpl();
298 return xsdAttributeUse;
299 }
300
301 /**
302 * <!-- begin-user-doc -->
303 * <!-- end-user-doc -->
304 * @generated
305 */
306 @Override
307 public XSDBoundedFacet createXSDBoundedFacet()
308 {
309 XSDBoundedFacetImpl xsdBoundedFacet = new XSDBoundedFacetImpl();
310 return xsdBoundedFacet;
311 }
312
313 /**
314 * <!-- begin-user-doc -->
315 * <!-- end-user-doc -->
316 * @generated
317 */
318 @Override
319 public XSDCardinalityFacet createXSDCardinalityFacet()
320 {
321 XSDCardinalityFacetImpl xsdCardinalityFacet = new XSDCardinalityFacetImpl();
322 return xsdCardinalityFacet;
323 }
324
325 /**
326 * <!-- begin-user-doc -->
327 * <!-- end-user-doc -->
328 * @generated
329 */
330 @Override
331 public XSDComplexTypeDefinition createXSDComplexTypeDefinition()
332 {
333 XSDComplexTypeDefinitionImpl xsdComplexTypeDefinition = new XSDComplexTypeDefinitionImpl();
334 return xsdComplexTypeDefinition;
335 }
336
337 /**
338 * <!-- begin-user-doc -->
339 * <!-- end-user-doc -->
340 * @generated
341 */
342 @Override
343 public XSDDiagnostic createXSDDiagnostic()
344 {
345 XSDDiagnosticImpl xsdDiagnostic = new XSDDiagnosticImpl();
346 return xsdDiagnostic;
347 }
348
349 /**
350 * <!-- begin-user-doc -->
351 * <!-- end-user-doc -->
352 * @generated
353 */
354 @Override
355 public XSDElementDeclaration createXSDElementDeclaration()
356 {
357 XSDElementDeclarationImpl xsdElementDeclaration = new XSDElementDeclarationImpl();
358 return xsdElementDeclaration;
359 }
360
361 /**
362 * <!-- begin-user-doc -->
363 * <!-- end-user-doc -->
364 * @generated
365 */
366 @Override
367 public XSDEnumerationFacet createXSDEnumerationFacet()
368 {
369 XSDEnumerationFacetImpl xsdEnumerationFacet = new XSDEnumerationFacetImpl();
370 return xsdEnumerationFacet;
371 }
372
373 /**
374 * <!-- begin-user-doc -->
375 * <!-- end-user-doc -->
376 * @generated
377 */
378 @Override
379 public XSDFractionDigitsFacet createXSDFractionDigitsFacet()
380 {
381 XSDFractionDigitsFacetImpl xsdFractionDigitsFacet = new XSDFractionDigitsFacetImpl();
382 return xsdFractionDigitsFacet;
383 }
384
385 /**
386 * <!-- begin-user-doc -->
387 * <!-- end-user-doc -->
388 * @generated
389 */
390 @Override
391 public XSDIdentityConstraintDefinition createXSDIdentityConstraintDefinition()
392 {
393 XSDIdentityConstraintDefinitionImpl xsdIdentityConstraintDefinition = new XSDIdentityConstraintDefinitionImpl();
394 return xsdIdentityConstraintDefinition;
395 }
396
397 /**
398 * <!-- begin-user-doc -->
399 * <!-- end-user-doc -->
400 * @generated
401 */
402 @Override
403 public XSDImport createXSDImport()
404 {
405 XSDImportImpl xsdImport = new XSDImportImpl();
406 return xsdImport;
407 }
408
409 /**
410 * <!-- begin-user-doc -->
411 * <!-- end-user-doc -->
412 * @generated
413 */
414 @Override
415 public XSDInclude createXSDInclude()
416 {
417 XSDIncludeImpl xsdInclude = new XSDIncludeImpl();
418 return xsdInclude;
419 }
420
421 /**
422 * <!-- begin-user-doc -->
423 * <!-- end-user-doc -->
424 * @generated
425 */
426 @Override
427 public XSDLengthFacet createXSDLengthFacet()
428 {
429 XSDLengthFacetImpl xsdLengthFacet = new XSDLengthFacetImpl();
430 return xsdLengthFacet;
431 }
432
433 /**
434 * <!-- begin-user-doc -->
435 * <!-- end-user-doc -->
436 * @generated
437 */
438 @Override
439 public XSDMaxExclusiveFacet createXSDMaxExclusiveFacet()
440 {
441 XSDMaxExclusiveFacetImpl xsdMaxExclusiveFacet = new XSDMaxExclusiveFacetImpl();
442 return xsdMaxExclusiveFacet;
443 }
444
445 /**
446 * <!-- begin-user-doc -->
447 * <!-- end-user-doc -->
448 * @generated
449 */
450 @Override
451 public XSDMaxInclusiveFacet createXSDMaxInclusiveFacet()
452 {
453 XSDMaxInclusiveFacetImpl xsdMaxInclusiveFacet = new XSDMaxInclusiveFacetImpl();
454 return xsdMaxInclusiveFacet;
455 }
456
457 /**
458 * <!-- begin-user-doc -->
459 * <!-- end-user-doc -->
460 * @generated
461 */
462 @Override
463 public XSDMaxLengthFacet createXSDMaxLengthFacet()
464 {
465 XSDMaxLengthFacetImpl xsdMaxLengthFacet = new XSDMaxLengthFacetImpl();
466 return xsdMaxLengthFacet;
467 }
468
469 /**
470 * <!-- begin-user-doc -->
471 * <!-- end-user-doc -->
472 * @generated
473 */
474 @Override
475 public XSDMinExclusiveFacet createXSDMinExclusiveFacet()
476 {
477 XSDMinExclusiveFacetImpl xsdMinExclusiveFacet = new XSDMinExclusiveFacetImpl();
478 return xsdMinExclusiveFacet;
479 }
480
481 /**
482 * <!-- begin-user-doc -->
483 * <!-- end-user-doc -->
484 * @generated
485 */
486 @Override
487 public XSDMinInclusiveFacet createXSDMinInclusiveFacet()
488 {
489 XSDMinInclusiveFacetImpl xsdMinInclusiveFacet = new XSDMinInclusiveFacetImpl();
490 return xsdMinInclusiveFacet;
491 }
492
493 /**
494 * <!-- begin-user-doc -->
495 * <!-- end-user-doc -->
496 * @generated
497 */
498 @Override
499 public XSDMinLengthFacet createXSDMinLengthFacet()
500 {
501 XSDMinLengthFacetImpl xsdMinLengthFacet = new XSDMinLengthFacetImpl();
502 return xsdMinLengthFacet;
503 }
504
505 /**
506 * <!-- begin-user-doc -->
507 * <!-- end-user-doc -->
508 * @generated
509 */
510 @Override
511 public XSDModelGroup createXSDModelGroup()
512 {
513 XSDModelGroupImpl xsdModelGroup = new XSDModelGroupImpl();
514 return xsdModelGroup;
515 }
516
517 /**
518 * <!-- begin-user-doc -->
519 * <!-- end-user-doc -->
520 * @generated
521 */
522 @Override
523 public XSDModelGroupDefinition createXSDModelGroupDefinition()
524 {
525 XSDModelGroupDefinitionImpl xsdModelGroupDefinition = new XSDModelGroupDefinitionImpl();
526 return xsdModelGroupDefinition;
527 }
528
529 /**
530 * <!-- begin-user-doc -->
531 * <!-- end-user-doc -->
532 * @generated
533 */
534 @Override
535 public XSDNotationDeclaration createXSDNotationDeclaration()
536 {
537 XSDNotationDeclarationImpl xsdNotationDeclaration = new XSDNotationDeclarationImpl();
538 return xsdNotationDeclaration;
539 }
540
541 /**
542 * <!-- begin-user-doc -->
543 * <!-- end-user-doc -->
544 * @generated
545 */
546 @Override
547 public XSDNumericFacet createXSDNumericFacet()
548 {
549 XSDNumericFacetImpl xsdNumericFacet = new XSDNumericFacetImpl();
550 return xsdNumericFacet;
551 }
552
553 /**
554 * <!-- begin-user-doc -->
555 * <!-- end-user-doc -->
556 * @generated
557 */
558 @Override
559 public XSDOrderedFacet createXSDOrderedFacet()
560 {
561 XSDOrderedFacetImpl xsdOrderedFacet = new XSDOrderedFacetImpl();
562 return xsdOrderedFacet;
563 }
564
565 /**
566 * <!-- begin-user-doc -->
567 * <!-- end-user-doc -->
568 * @generated
569 */
570 @Override
571 public XSDParticle createXSDParticle()
572 {
573 XSDParticleImpl xsdParticle = new XSDParticleImpl();
574 return xsdParticle;
575 }
576
577 /**
578 * <!-- begin-user-doc -->
579 * <!-- end-user-doc -->
580 * @generated
581 */
582 @Override
583 public XSDPatternFacet createXSDPatternFacet()
584 {
585 XSDPatternFacetImpl xsdPatternFacet = new XSDPatternFacetImpl();
586 return xsdPatternFacet;
587 }
588
589 /**
590 * <!-- begin-user-doc -->
591 * <!-- end-user-doc -->
592 * @generated
593 */
594 @Override
595 public XSDRedefine createXSDRedefine()
596 {
597 XSDRedefineImpl xsdRedefine = new XSDRedefineImpl();
598 return xsdRedefine;
599 }
600
601 /**
602 * <!-- begin-user-doc -->
603 * <!-- end-user-doc -->
604 * @generated
605 */
606 @Override
607 public XSDSchema createXSDSchema()
608 {
609 XSDSchemaImpl xsdSchema = new XSDSchemaImpl();
610 return xsdSchema;
611 }
612
613 /**
614 * <!-- begin-user-doc -->
615 * <!-- end-user-doc -->
616 * @generated
617 */
618 @Override
619 public XSDSimpleTypeDefinition createXSDSimpleTypeDefinition()
620 {
621 XSDSimpleTypeDefinitionImpl xsdSimpleTypeDefinition = new XSDSimpleTypeDefinitionImpl();
622 return xsdSimpleTypeDefinition;
623 }
624
625 /**
626 * <!-- begin-user-doc -->
627 * <!-- end-user-doc -->
628 * @generated
629 */
630 @Override
631 public XSDTotalDigitsFacet createXSDTotalDigitsFacet()
632 {
633 XSDTotalDigitsFacetImpl xsdTotalDigitsFacet = new XSDTotalDigitsFacetImpl();
634 return xsdTotalDigitsFacet;
635 }
636
637 /**
638 * <!-- begin-user-doc -->
639 * <!-- end-user-doc -->
640 * @generated
641 */
642 @Override
643 public XSDWhiteSpaceFacet createXSDWhiteSpaceFacet()
644 {
645 XSDWhiteSpaceFacetImpl xsdWhiteSpaceFacet = new XSDWhiteSpaceFacetImpl();
646 return xsdWhiteSpaceFacet;
647 }
648
649 /**
650 * <!-- begin-user-doc -->
651 * <!-- end-user-doc -->
652 * @generated
653 */
654 @Override
655 public XSDWildcard createXSDWildcard()
656 {
657 XSDWildcardImpl xsdWildcard = new XSDWildcardImpl();
658 return xsdWildcard;
659 }
660
661 /**
662 * <!-- begin-user-doc -->
663 * <!-- end-user-doc -->
664 * @generated
665 */
666 @Override
667 public XSDXPathDefinition createXSDXPathDefinition()
668 {
669 XSDXPathDefinitionImpl xsdxPathDefinition = new XSDXPathDefinitionImpl();
670 return xsdxPathDefinition;
671 }
672
673 /**
674 * <!-- begin-user-doc -->
675 * <!-- end-user-doc -->
676 * @generated
677 */
678 public XSDAttributeUseCategory createXSDAttributeUseCategoryFromString(EDataType eDataType, String initialValue)
679 {
680 XSDAttributeUseCategory result = XSDAttributeUseCategory.get(initialValue);
681 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
682 return result;
683 }
684
685 /**
686 * <!-- begin-user-doc -->
687 * <!-- end-user-doc -->
688 * @generated
689 */
690 public String convertXSDAttributeUseCategoryToString(EDataType eDataType, Object instanceValue)
691 {
692 return instanceValue == null ? null : instanceValue.toString();
693 }
694
695 /**
696 * <!-- begin-user-doc -->
697 * <!-- end-user-doc -->
698 * @generated
699 */
700 public XSDCardinality createXSDCardinalityFromString(EDataType eDataType, String initialValue)
701 {
702 XSDCardinality result = XSDCardinality.get(initialValue);
703 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
704 return result;
705 }
706
707 /**
708 * <!-- begin-user-doc -->
709 * <!-- end-user-doc -->
710 * @generated
711 */
712 public String convertXSDCardinalityToString(EDataType eDataType, Object instanceValue)
713 {
714 return instanceValue == null ? null : instanceValue.toString();
715 }
716
717 /**
718 * <!-- begin-user-doc -->
719 * <!-- end-user-doc -->
720 * @generated
721 */
722 public XSDComplexFinal createXSDComplexFinalFromString(EDataType eDataType, String initialValue)
723 {
724 XSDComplexFinal result = XSDComplexFinal.get(initialValue);
725 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
726 return result;
727 }
728
729 /**
730 * <!-- begin-user-doc -->
731 * <!-- end-user-doc -->
732 * @generated
733 */
734 public String convertXSDComplexFinalToString(EDataType eDataType, Object instanceValue)
735 {
736 return instanceValue == null ? null : instanceValue.toString();
737 }
738
739 /**
740 * <!-- begin-user-doc -->
741 * <!-- end-user-doc -->
742 * @generated
743 */
744 public XSDCompositor createXSDCompositorFromString(EDataType eDataType, String initialValue)
745 {
746 XSDCompositor result = XSDCompositor.get(initialValue);
747 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
748 return result;
749 }
750
751 /**
752 * <!-- begin-user-doc -->
753 * <!-- end-user-doc -->
754 * @generated
755 */
756 public String convertXSDCompositorToString(EDataType eDataType, Object instanceValue)
757 {
758 return instanceValue == null ? null : instanceValue.toString();
759 }
760
761 /**
762 * <!-- begin-user-doc -->
763 * <!-- end-user-doc -->
764 * @generated
765 */
766 public XSDConstraint createXSDConstraintFromString(EDataType eDataType, String initialValue)
767 {
768 XSDConstraint result = XSDConstraint.get(initialValue);
769 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
770 return result;
771 }
772
773 /**
774 * <!-- begin-user-doc -->
775 * <!-- end-user-doc -->
776 * @generated
777 */
778 public String convertXSDConstraintToString(EDataType eDataType, Object instanceValue)
779 {
780 return instanceValue == null ? null : instanceValue.toString();
781 }
782
783 /**
784 * <!-- begin-user-doc -->
785 * <!-- end-user-doc -->
786 * @generated
787 */
788 public XSDContentTypeCategory createXSDContentTypeCategoryFromString(EDataType eDataType, String initialValue)
789 {
790 XSDContentTypeCategory result = XSDContentTypeCategory.get(initialValue);
791 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
792 return result;
793 }
794
795 /**
796 * <!-- begin-user-doc -->
797 * <!-- end-user-doc -->
798 * @generated
799 */
800 public String convertXSDContentTypeCategoryToString(EDataType eDataType, Object instanceValue)
801 {
802 return instanceValue == null ? null : instanceValue.toString();
803 }
804
805 /**
806 * <!-- begin-user-doc -->
807 * <!-- end-user-doc -->
808 * @generated
809 */
810 public XSDDerivationMethod createXSDDerivationMethodFromString(EDataType eDataType, String initialValue)
811 {
812 XSDDerivationMethod result = XSDDerivationMethod.get(initialValue);
813 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
814 return result;
815 }
816
817 /**
818 * <!-- begin-user-doc -->
819 * <!-- end-user-doc -->
820 * @generated
821 */
822 public String convertXSDDerivationMethodToString(EDataType eDataType, Object instanceValue)
823 {
824 return instanceValue == null ? null : instanceValue.toString();
825 }
826
827 /**
828 * <!-- begin-user-doc -->
829 * <!-- end-user-doc -->
830 * @generated
831 */
832 public XSDDiagnosticSeverity createXSDDiagnosticSeverityFromString(EDataType eDataType, String initialValue)
833 {
834 XSDDiagnosticSeverity result = XSDDiagnosticSeverity.get(initialValue);
835 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
836 return result;
837 }
838
839 /**
840 * <!-- begin-user-doc -->
841 * <!-- end-user-doc -->
842 * @generated
843 */
844 public String convertXSDDiagnosticSeverityToString(EDataType eDataType, Object instanceValue)
845 {
846 return instanceValue == null ? null : instanceValue.toString();
847 }
848
849 /**
850 * <!-- begin-user-doc -->
851 * <!-- end-user-doc -->
852 * @generated
853 */
854 public XSDDisallowedSubstitutions createXSDDisallowedSubstitutionsFromString(EDataType eDataType, String initialValue)
855 {
856 XSDDisallowedSubstitutions result = XSDDisallowedSubstitutions.get(initialValue);
857 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
858 return result;
859 }
860
861 /**
862 * <!-- begin-user-doc -->
863 * <!-- end-user-doc -->
864 * @generated
865 */
866 public String convertXSDDisallowedSubstitutionsToString(EDataType eDataType, Object instanceValue)
867 {
868 return instanceValue == null ? null : instanceValue.toString();
869 }
870
871 /**
872 * <!-- begin-user-doc -->
873 * <!-- end-user-doc -->
874 * @generated
875 */
876 public XSDForm createXSDFormFromString(EDataType eDataType, String initialValue)
877 {
878 XSDForm result = XSDForm.get(initialValue);
879 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
880 return result;
881 }
882
883 /**
884 * <!-- begin-user-doc -->
885 * <!-- end-user-doc -->
886 * @generated
887 */
888 public String convertXSDFormToString(EDataType eDataType, Object instanceValue)
889 {
890 return instanceValue == null ? null : instanceValue.toString();
891 }
892
893 /**
894 * <!-- begin-user-doc -->
895 * <!-- end-user-doc -->
896 * @generated
897 */
898 public XSDIdentityConstraintCategory createXSDIdentityConstraintCategoryFromString(EDataType eDataType, String initialValue)
899 {
900 XSDIdentityConstraintCategory result = XSDIdentityConstraintCategory.get(initialValue);
901 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
902 return result;
903 }
904
905 /**
906 * <!-- begin-user-doc -->
907 * <!-- end-user-doc -->
908 * @generated
909 */
910 public String convertXSDIdentityConstraintCategoryToString(EDataType eDataType, Object instanceValue)
911 {
912 return instanceValue == null ? null : instanceValue.toString();
913 }
914
915 /**
916 * <!-- begin-user-doc -->
917 * <!-- end-user-doc -->
918 * @generated
919 */
920 public XSDNamespaceConstraintCategory createXSDNamespaceConstraintCategoryFromString(EDataType eDataType, String initialValue)
921 {
922 XSDNamespaceConstraintCategory result = XSDNamespaceConstraintCategory.get(initialValue);
923 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
924 return result;
925 }
926
927 /**
928 * <!-- begin-user-doc -->
929 * <!-- end-user-doc -->
930 * @generated
931 */
932 public String convertXSDNamespaceConstraintCategoryToString(EDataType eDataType, Object instanceValue)
933 {
934 return instanceValue == null ? null : instanceValue.toString();
935 }
936
937 /**
938 * <!-- begin-user-doc -->
939 * <!-- end-user-doc -->
940 * @generated
941 */
942 public XSDOrdered createXSDOrderedFromString(EDataType eDataType, String initialValue)
943 {
944 XSDOrdered result = XSDOrdered.get(initialValue);
945 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
946 return result;
947 }
948
949 /**
950 * <!-- begin-user-doc -->
951 * <!-- end-user-doc -->
952 * @generated
953 */
954 public String convertXSDOrderedToString(EDataType eDataType, Object instanceValue)
955 {
956 return instanceValue == null ? null : instanceValue.toString();
957 }
958
959 /**
960 * <!-- begin-user-doc -->
961 * <!-- end-user-doc -->
962 * @generated
963 */
964 public XSDProcessContents createXSDProcessContentsFromString(EDataType eDataType, String initialValue)
965 {
966 XSDProcessContents result = XSDProcessContents.get(initialValue);
967 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
968 return result;
969 }
970
971 /**
972 * <!-- begin-user-doc -->
973 * <!-- end-user-doc -->
974 * @generated
975 */
976 public String convertXSDProcessContentsToString(EDataType eDataType, Object instanceValue)
977 {
978 return instanceValue == null ? null : instanceValue.toString();
979 }
980
981 /**
982 * <!-- begin-user-doc -->
983 * <!-- end-user-doc -->
984 * @generated
985 */
986 public XSDProhibitedSubstitutions createXSDProhibitedSubstitutionsFromString(EDataType eDataType, String initialValue)
987 {
988 XSDProhibitedSubstitutions result = XSDProhibitedSubstitutions.get(initialValue);
989 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
990 return result;
991 }
992
993 /**
994 * <!-- begin-user-doc -->
995 * <!-- end-user-doc -->
996 * @generated
997 */
998 public String convertXSDProhibitedSubstitutionsToString(EDataType eDataType, Object instanceValue)
999 {
1000 return instanceValue == null ? null : instanceValue.toString();
1001 }
1002
1003 /**
1004 * <!-- begin-user-doc -->
1005 * <!-- end-user-doc -->
1006 * @generated
1007 */
1008 public XSDSimpleFinal createXSDSimpleFinalFromString(EDataType eDataType, String initialValue)
1009 {
1010 XSDSimpleFinal result = XSDSimpleFinal.get(initialValue);
1011 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1012 return result;
1013 }
1014
1015 /**
1016 * <!-- begin-user-doc -->
1017 * <!-- end-user-doc -->
1018 * @generated
1019 */
1020 public String convertXSDSimpleFinalToString(EDataType eDataType, Object instanceValue)
1021 {
1022 return instanceValue == null ? null : instanceValue.toString();
1023 }
1024
1025 /**
1026 * <!-- begin-user-doc -->
1027 * <!-- end-user-doc -->
1028 * @generated
1029 */
1030 public XSDSubstitutionGroupExclusions createXSDSubstitutionGroupExclusionsFromString(EDataType eDataType, String initialValue)
1031 {
1032 XSDSubstitutionGroupExclusions result = XSDSubstitutionGroupExclusions.get(initialValue);
1033 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1034 return result;
1035 }
1036
1037 /**
1038 * <!-- begin-user-doc -->
1039 * <!-- end-user-doc -->
1040 * @generated
1041 */
1042 public String convertXSDSubstitutionGroupExclusionsToString(EDataType eDataType, Object instanceValue)
1043 {
1044 return instanceValue == null ? null : instanceValue.toString();
1045 }
1046
1047 /**
1048 * <!-- begin-user-doc -->
1049 * <!-- end-user-doc -->
1050 * @generated
1051 */
1052 public XSDVariety createXSDVarietyFromString(EDataType eDataType, String initialValue)
1053 {
1054 XSDVariety result = XSDVariety.get(initialValue);
1055 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1056 return result;
1057 }
1058
1059 /**
1060 * <!-- begin-user-doc -->
1061 * <!-- end-user-doc -->
1062 * @generated
1063 */
1064 public String convertXSDVarietyToString(EDataType eDataType, Object instanceValue)
1065 {
1066 return instanceValue == null ? null : instanceValue.toString();
1067 }
1068
1069 /**
1070 * <!-- begin-user-doc -->
1071 * <!-- end-user-doc -->
1072 * @generated
1073 */
1074 public XSDWhiteSpace createXSDWhiteSpaceFromString(EDataType eDataType, String initialValue)
1075 {
1076 XSDWhiteSpace result = XSDWhiteSpace.get(initialValue);
1077 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1078 return result;
1079 }
1080
1081 /**
1082 * <!-- begin-user-doc -->
1083 * <!-- end-user-doc -->
1084 * @generated
1085 */
1086 public String convertXSDWhiteSpaceToString(EDataType eDataType, Object instanceValue)
1087 {
1088 return instanceValue == null ? null : instanceValue.toString();
1089 }
1090
1091 /**
1092 * <!-- begin-user-doc -->
1093 * <!-- end-user-doc -->
1094 * @generated
1095 */
1096 public XSDXPathVariety createXSDXPathVarietyFromString(EDataType eDataType, String initialValue)
1097 {
1098 XSDXPathVariety result = XSDXPathVariety.get(initialValue);
1099 if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
1100 return result;
1101 }
1102
1103 /**
1104 * <!-- begin-user-doc -->
1105 * <!-- end-user-doc -->
1106 * @generated
1107 */
1108 public String convertXSDXPathVarietyToString(EDataType eDataType, Object instanceValue)
1109 {
1110 return instanceValue == null ? null : instanceValue.toString();
1111 }
1112
1113 /**
1114 * <!-- begin-user-doc -->
1115 * <!-- end-user-doc -->
1116 * @generated modifiable
1117 */
1118 public Attr createDOMAttrFromString(EDataType eDataType, String initialValue)
1119 {
1120 return (Attr)super.createFromString(eDataType, initialValue);
1121 }
1122
1123 /**
1124 * <!-- begin-user-doc -->
1125 * <!-- end-user-doc -->
1126 * @generated modifiable
1127 */
1128 public String convertDOMAttrToString(EDataType eDataType, Object instanceValue)
1129 {
1130 return super.convertToString(eDataType, instanceValue);
1131 }
1132
1133 /**
1134 * <!-- begin-user-doc -->
1135 * <!-- end-user-doc -->
1136 * @generated modifiable
1137 */
1138 public Document createDOMDocumentFromString(EDataType eDataType, String initialValue)
1139 {
1140 return (Document)super.createFromString(eDataType, initialValue);
1141 }
1142
1143 /**
1144 * <!-- begin-user-doc -->
1145 * <!-- end-user-doc -->
1146 * @generated modifiable
1147 */
1148 public String convertDOMDocumentToString(EDataType eDataType, Object instanceValue)
1149 {
1150 return super.convertToString(eDataType, instanceValue);
1151 }
1152
1153 /**
1154 * <!-- begin-user-doc -->
1155 * <!-- end-user-doc -->
1156 * @generated modifiable
1157 */
1158 public Element createDOMElementFromString(EDataType eDataType, String initialValue)
1159 {
1160 return (Element)super.createFromString(eDataType, initialValue);
1161 }
1162
1163 /**
1164 * <!-- begin-user-doc -->
1165 * <!-- end-user-doc -->
1166 * @generated modifiable
1167 */
1168 public String convertDOMElementToString(EDataType eDataType, Object instanceValue)
1169 {
1170 return super.convertToString(eDataType, instanceValue);
1171 }
1172
1173 /**
1174 * <!-- begin-user-doc -->
1175 * <!-- end-user-doc -->
1176 * @generated modifiable
1177 */
1178 public Node createDOMNodeFromString(EDataType eDataType, String initialValue)
1179 {
1180 return (Node)super.createFromString(eDataType, initialValue);
1181 }
1182
1183 /**
1184 * <!-- begin-user-doc -->
1185 * <!-- end-user-doc -->
1186 * @generated modifiable
1187 */
1188 public String convertDOMNodeToString(EDataType eDataType, Object instanceValue)
1189 {
1190 return super.convertToString(eDataType, instanceValue);
1191 }
1192
1193 /**
1194 * <!-- begin-user-doc -->
1195 * <!-- end-user-doc -->
1196 * @generated modifiable
1197 */
1198 public Object createValueFromString(EDataType eDataType, String initialValue)
1199 {
1200 return super.createFromString(eDataType, initialValue);
1201 }
1202
1203 /**
1204 * <!-- begin-user-doc -->
1205 * <!-- end-user-doc -->
1206 * @generated modifiable
1207 */
1208 public String convertValueToString(EDataType eDataType, Object instanceValue)
1209 {
1210 return super.convertToString(eDataType, instanceValue);
1211 }
1212
1213 /**
1214 * <!-- begin-user-doc -->
1215 * <!-- end-user-doc -->
1216 * @generated
1217 */
1218 @Override
1219 public XSDPackage getXSDPackage()
1220 {
1221 return (XSDPackage)getEPackage();
1222 }
1223
1224 /**
1225 * <!-- begin-user-doc -->
1226 * <!-- end-user-doc -->
1227 * @deprecated
1228 * @generated
1229 */
1230 @Deprecated
1231 public static XSDPackage getPackage()
1232 {
1233 return XSDPackage.eINSTANCE;
1234 }
1235
1236 } //XSDFactoryImpl