org.eclipse.xsd.impl.XSDRedefineContentImpl Maven / Gradle / Ivy
/**
* Copyright (c) 2002-2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - Initial API and implementation
*/
package org.eclipse.xsd.impl;
import org.w3c.dom.Node;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.xsd.XSDPackage;
import org.eclipse.xsd.XSDRedefineContent;
import org.eclipse.xsd.util.XSDConstants;
/**
*
* An implementation of the model object 'Redefine Content'.
*
*
* @generated
*/
public abstract class XSDRedefineContentImpl
extends XSDSchemaContentImpl
implements XSDRedefineContent
{
public static XSDRedefineContent createRedefineContent(Node node)
{
switch (XSDConstants.nodeType(node))
{
case XSDConstants.ANNOTATION_ELEMENT:
{
return XSDAnnotationImpl.createAnnotation(node);
}
case XSDConstants.SIMPLETYPE_ELEMENT:
{
return XSDSimpleTypeDefinitionImpl.createSimpleTypeDefinition(node);
}
case XSDConstants.COMPLEXTYPE_ELEMENT:
{
return XSDComplexTypeDefinitionImpl.createComplexTypeDefinition(node);
}
case XSDConstants.ATTRIBUTEGROUP_ELEMENT:
{
return XSDAttributeGroupDefinitionImpl.createAttributeGroupDefinition(node);
}
case XSDConstants.GROUP_ELEMENT:
{
return XSDModelGroupDefinitionImpl.createModelGroupDefinition(node);
}
}
return null;
}
/**
*
*
* @generated
*/
protected XSDRedefineContentImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass()
{
return XSDPackage.Literals.XSD_REDEFINE_CONTENT;
}
}