Debian Codegraph @

plugins/org.eclipse.xsd/src/org/eclipse/xsd/impl/XSDAttributeGroupContentImpl.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.Node;
15
16 import org.eclipse.emf.ecore.EClass;
17
18 import org.eclipse.xsd.XSDAttributeGroupContent;
19 import org.eclipse.xsd.XSDPackage;
20 import org.eclipse.xsd.util.XSDConstants;
21
22
23 /**
24 * <!-- begin-user-doc -->
25 * An implementation of the model object '<em><b>Attribute Group Content</b></em>'.
26 * <!-- end-user-doc -->
27 *
28 * @generated
29 */
30 public abstract class XSDAttributeGroupContentImpl
31 extends XSDConcreteComponentImpl
32 implements XSDAttributeGroupContent
33 {
34
35 public static XSDAttributeGroupContent createAttributeGroupContent(Node node)
36 {
37 switch (XSDConstants.nodeType(node))
38 {
39 case XSDConstants.ATTRIBUTE_ELEMENT:
40 {
41 return XSDAttributeUseImpl.createAttributeUse(node);
42 }
43 case XSDConstants.ATTRIBUTEGROUP_ELEMENT:
44 {
45 return XSDAttributeGroupDefinitionImpl.createAttributeGroupDefinition(node);
46 }
47 }
48
49 return null;
50 }
51
52 /**
53 * <!-- begin-user-doc -->
54 * <!-- end-user-doc -->
55 * @generated
56 */
57 protected XSDAttributeGroupContentImpl()
58 {
59 super();
60 }
61
62 /**
63 * <!-- begin-user-doc -->
64 * <!-- end-user-doc -->
65 * @generated
66 */
67 @Override
68 protected EClass eStaticClass()
69 {
70 return XSDPackage.Literals.XSD_ATTRIBUTE_GROUP_CONTENT;
71 }
72
73 }