Debian Codegraph @

plugins/org.eclipse.xsd/src/org/eclipse/xsd/impl/XSDRedefineContentImpl.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
15 import org.w3c.dom.Node;
16
17 import org.eclipse.emf.ecore.EClass;
18
19 import org.eclipse.xsd.XSDPackage;
20 import org.eclipse.xsd.XSDRedefineContent;
21 import org.eclipse.xsd.util.XSDConstants;
22
23
24 /**
25 * <!-- begin-user-doc -->
26 * An implementation of the model object '<em><b>Redefine Content</b></em>'.
27 * <!-- end-user-doc -->
28 *
29 * @generated
30 */
31 public abstract class XSDRedefineContentImpl
32 extends XSDSchemaContentImpl
33 implements XSDRedefineContent
34 {
35 public static XSDRedefineContent createRedefineContent(Node node)
36 {
37 switch (XSDConstants.nodeType(node))
38 {
39 case XSDConstants.ANNOTATION_ELEMENT:
40 {
41 return XSDAnnotationImpl.createAnnotation(node);
42 }
43 case XSDConstants.SIMPLETYPE_ELEMENT:
44 {
45 return XSDSimpleTypeDefinitionImpl.createSimpleTypeDefinition(node);
46 }
47 case XSDConstants.COMPLEXTYPE_ELEMENT:
48 {
49 return XSDComplexTypeDefinitionImpl.createComplexTypeDefinition(node);
50 }
51 case XSDConstants.ATTRIBUTEGROUP_ELEMENT:
52 {
53 return XSDAttributeGroupDefinitionImpl.createAttributeGroupDefinition(node);
54 }
55 case XSDConstants.GROUP_ELEMENT:
56 {
57 return XSDModelGroupDefinitionImpl.createModelGroupDefinition(node);
58 }
59 }
60 return null;
61 }
62
63 /**
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 protected XSDRedefineContentImpl()
69 {
70 super();
71 }
72
73 /**
74 * <!-- begin-user-doc -->
75 * <!-- end-user-doc -->
76 * @generated
77 */
78 @Override
79 protected EClass eStaticClass()
80 {
81 return XSDPackage.Literals.XSD_REDEFINE_CONTENT;
82 }
83
84 }