All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.xsd.impl.XSDSchemaContentImpl 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.XSDSchemaContent;
import org.eclipse.xsd.util.XSDConstants;


/**
 * 
 * An implementation of the model object 'Schema Content'.
 * 
 *
 * @generated
 */
public abstract class XSDSchemaContentImpl 
  extends XSDConcreteComponentImpl 
  implements XSDSchemaContent
{
  public static XSDSchemaContent createSchemaContent(Node node)
  {
    switch (XSDConstants.nodeType(node))
    {
      case XSDConstants.ANNOTATION_ELEMENT:
      {
        return XSDAnnotationImpl.createAnnotation(node);
      }
      case XSDConstants.ATTRIBUTE_ELEMENT:
      {
        return XSDAttributeDeclarationImpl.createAttributeDeclaration(node);
      }
      case XSDConstants.ELEMENT_ELEMENT:
      {
        return XSDElementDeclarationImpl.createElementDeclaration(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);
      }
      case XSDConstants.INCLUDE_ELEMENT:
      {
        return XSDIncludeImpl.createInclude(node);
      }
      case XSDConstants.IMPORT_ELEMENT:
      {
        return XSDImportImpl.createImport(node);
      }
      case XSDConstants.REDEFINE_ELEMENT:
      {
        return XSDRedefineImpl.createRedefine(node);
      }
      case XSDConstants.NOTATION_ELEMENT:
      {
        return XSDNotationDeclarationImpl.createNotationDeclaration(node);
      }
    }

    return null;
  }

  /**
   * 
   * 
   * @generated
   */
  protected XSDSchemaContentImpl()
  {
    super();
  }

  /**
   * 
   * 
   * @generated
   */
  @Override
  protected EClass eStaticClass()
  {
    return XSDPackage.Literals.XSD_SCHEMA_CONTENT;
  }

} 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy