Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.eclipse.xsd.impl.XSDFactoryImpl 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.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import org.eclipse.xsd.*;
/**
*
* An implementation of the model Factory .
*
* @generated
*/
public class XSDFactoryImpl extends EFactoryImpl implements XSDFactory
{
/**
* Creates the default factory implementation.
*
*
* @generated
*/
public static XSDFactory init()
{
try
{
XSDFactory theXSDFactory = (XSDFactory)EPackage.Registry.INSTANCE.getEFactory(XSDPackage.eNS_URI);
if (theXSDFactory != null)
{
return theXSDFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new XSDFactoryImpl();
}
/**
* Creates an instance of the factory.
*
*
* @generated
*/
public XSDFactoryImpl()
{
super();
}
/**
*
*
* @generated
*/
@Override
public EObject create(EClass eClass)
{
switch (eClass.getClassifierID())
{
case XSDPackage.XSD_ANNOTATION: return createXSDAnnotation();
case XSDPackage.XSD_ATTRIBUTE_DECLARATION: return createXSDAttributeDeclaration();
case XSDPackage.XSD_ATTRIBUTE_GROUP_DEFINITION: return createXSDAttributeGroupDefinition();
case XSDPackage.XSD_ATTRIBUTE_USE: return createXSDAttributeUse();
case XSDPackage.XSD_BOUNDED_FACET: return createXSDBoundedFacet();
case XSDPackage.XSD_CARDINALITY_FACET: return createXSDCardinalityFacet();
case XSDPackage.XSD_COMPLEX_TYPE_DEFINITION: return createXSDComplexTypeDefinition();
case XSDPackage.XSD_DIAGNOSTIC: return createXSDDiagnostic();
case XSDPackage.XSD_ELEMENT_DECLARATION: return createXSDElementDeclaration();
case XSDPackage.XSD_ENUMERATION_FACET: return createXSDEnumerationFacet();
case XSDPackage.XSD_FRACTION_DIGITS_FACET: return createXSDFractionDigitsFacet();
case XSDPackage.XSD_IDENTITY_CONSTRAINT_DEFINITION: return createXSDIdentityConstraintDefinition();
case XSDPackage.XSD_IMPORT: return createXSDImport();
case XSDPackage.XSD_INCLUDE: return createXSDInclude();
case XSDPackage.XSD_LENGTH_FACET: return createXSDLengthFacet();
case XSDPackage.XSD_MAX_EXCLUSIVE_FACET: return createXSDMaxExclusiveFacet();
case XSDPackage.XSD_MAX_INCLUSIVE_FACET: return createXSDMaxInclusiveFacet();
case XSDPackage.XSD_MAX_LENGTH_FACET: return createXSDMaxLengthFacet();
case XSDPackage.XSD_MIN_EXCLUSIVE_FACET: return createXSDMinExclusiveFacet();
case XSDPackage.XSD_MIN_INCLUSIVE_FACET: return createXSDMinInclusiveFacet();
case XSDPackage.XSD_MIN_LENGTH_FACET: return createXSDMinLengthFacet();
case XSDPackage.XSD_MODEL_GROUP: return createXSDModelGroup();
case XSDPackage.XSD_MODEL_GROUP_DEFINITION: return createXSDModelGroupDefinition();
case XSDPackage.XSD_NOTATION_DECLARATION: return createXSDNotationDeclaration();
case XSDPackage.XSD_NUMERIC_FACET: return createXSDNumericFacet();
case XSDPackage.XSD_ORDERED_FACET: return createXSDOrderedFacet();
case XSDPackage.XSD_PARTICLE: return createXSDParticle();
case XSDPackage.XSD_PATTERN_FACET: return createXSDPatternFacet();
case XSDPackage.XSD_REDEFINE: return createXSDRedefine();
case XSDPackage.XSD_SCHEMA: return createXSDSchema();
case XSDPackage.XSD_SIMPLE_TYPE_DEFINITION: return createXSDSimpleTypeDefinition();
case XSDPackage.XSD_TOTAL_DIGITS_FACET: return createXSDTotalDigitsFacet();
case XSDPackage.XSD_WHITE_SPACE_FACET: return createXSDWhiteSpaceFacet();
case XSDPackage.XSD_WILDCARD: return createXSDWildcard();
case XSDPackage.XSD_XPATH_DEFINITION: return createXSDXPathDefinition();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue)
{
switch (eDataType.getClassifierID())
{
case XSDPackage.XSD_ATTRIBUTE_USE_CATEGORY:
return createXSDAttributeUseCategoryFromString(eDataType, initialValue);
case XSDPackage.XSD_CARDINALITY:
return createXSDCardinalityFromString(eDataType, initialValue);
case XSDPackage.XSD_COMPLEX_FINAL:
return createXSDComplexFinalFromString(eDataType, initialValue);
case XSDPackage.XSD_COMPOSITOR:
return createXSDCompositorFromString(eDataType, initialValue);
case XSDPackage.XSD_CONSTRAINT:
return createXSDConstraintFromString(eDataType, initialValue);
case XSDPackage.XSD_CONTENT_TYPE_CATEGORY:
return createXSDContentTypeCategoryFromString(eDataType, initialValue);
case XSDPackage.XSD_DERIVATION_METHOD:
return createXSDDerivationMethodFromString(eDataType, initialValue);
case XSDPackage.XSD_DIAGNOSTIC_SEVERITY:
return createXSDDiagnosticSeverityFromString(eDataType, initialValue);
case XSDPackage.XSD_DISALLOWED_SUBSTITUTIONS:
return createXSDDisallowedSubstitutionsFromString(eDataType, initialValue);
case XSDPackage.XSD_FORM:
return createXSDFormFromString(eDataType, initialValue);
case XSDPackage.XSD_IDENTITY_CONSTRAINT_CATEGORY:
return createXSDIdentityConstraintCategoryFromString(eDataType, initialValue);
case XSDPackage.XSD_NAMESPACE_CONSTRAINT_CATEGORY:
return createXSDNamespaceConstraintCategoryFromString(eDataType, initialValue);
case XSDPackage.XSD_ORDERED:
return createXSDOrderedFromString(eDataType, initialValue);
case XSDPackage.XSD_PROCESS_CONTENTS:
return createXSDProcessContentsFromString(eDataType, initialValue);
case XSDPackage.XSD_PROHIBITED_SUBSTITUTIONS:
return createXSDProhibitedSubstitutionsFromString(eDataType, initialValue);
case XSDPackage.XSD_SIMPLE_FINAL:
return createXSDSimpleFinalFromString(eDataType, initialValue);
case XSDPackage.XSD_SUBSTITUTION_GROUP_EXCLUSIONS:
return createXSDSubstitutionGroupExclusionsFromString(eDataType, initialValue);
case XSDPackage.XSD_VARIETY:
return createXSDVarietyFromString(eDataType, initialValue);
case XSDPackage.XSD_WHITE_SPACE:
return createXSDWhiteSpaceFromString(eDataType, initialValue);
case XSDPackage.XSD_XPATH_VARIETY:
return createXSDXPathVarietyFromString(eDataType, initialValue);
case XSDPackage.DOM_ATTR:
return createDOMAttrFromString(eDataType, initialValue);
case XSDPackage.DOM_DOCUMENT:
return createDOMDocumentFromString(eDataType, initialValue);
case XSDPackage.DOM_ELEMENT:
return createDOMElementFromString(eDataType, initialValue);
case XSDPackage.DOM_NODE:
return createDOMNodeFromString(eDataType, initialValue);
case XSDPackage.VALUE:
return createValueFromString(eDataType, initialValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue)
{
switch (eDataType.getClassifierID())
{
case XSDPackage.XSD_ATTRIBUTE_USE_CATEGORY:
return convertXSDAttributeUseCategoryToString(eDataType, instanceValue);
case XSDPackage.XSD_CARDINALITY:
return convertXSDCardinalityToString(eDataType, instanceValue);
case XSDPackage.XSD_COMPLEX_FINAL:
return convertXSDComplexFinalToString(eDataType, instanceValue);
case XSDPackage.XSD_COMPOSITOR:
return convertXSDCompositorToString(eDataType, instanceValue);
case XSDPackage.XSD_CONSTRAINT:
return convertXSDConstraintToString(eDataType, instanceValue);
case XSDPackage.XSD_CONTENT_TYPE_CATEGORY:
return convertXSDContentTypeCategoryToString(eDataType, instanceValue);
case XSDPackage.XSD_DERIVATION_METHOD:
return convertXSDDerivationMethodToString(eDataType, instanceValue);
case XSDPackage.XSD_DIAGNOSTIC_SEVERITY:
return convertXSDDiagnosticSeverityToString(eDataType, instanceValue);
case XSDPackage.XSD_DISALLOWED_SUBSTITUTIONS:
return convertXSDDisallowedSubstitutionsToString(eDataType, instanceValue);
case XSDPackage.XSD_FORM:
return convertXSDFormToString(eDataType, instanceValue);
case XSDPackage.XSD_IDENTITY_CONSTRAINT_CATEGORY:
return convertXSDIdentityConstraintCategoryToString(eDataType, instanceValue);
case XSDPackage.XSD_NAMESPACE_CONSTRAINT_CATEGORY:
return convertXSDNamespaceConstraintCategoryToString(eDataType, instanceValue);
case XSDPackage.XSD_ORDERED:
return convertXSDOrderedToString(eDataType, instanceValue);
case XSDPackage.XSD_PROCESS_CONTENTS:
return convertXSDProcessContentsToString(eDataType, instanceValue);
case XSDPackage.XSD_PROHIBITED_SUBSTITUTIONS:
return convertXSDProhibitedSubstitutionsToString(eDataType, instanceValue);
case XSDPackage.XSD_SIMPLE_FINAL:
return convertXSDSimpleFinalToString(eDataType, instanceValue);
case XSDPackage.XSD_SUBSTITUTION_GROUP_EXCLUSIONS:
return convertXSDSubstitutionGroupExclusionsToString(eDataType, instanceValue);
case XSDPackage.XSD_VARIETY:
return convertXSDVarietyToString(eDataType, instanceValue);
case XSDPackage.XSD_WHITE_SPACE:
return convertXSDWhiteSpaceToString(eDataType, instanceValue);
case XSDPackage.XSD_XPATH_VARIETY:
return convertXSDXPathVarietyToString(eDataType, instanceValue);
case XSDPackage.DOM_ATTR:
return convertDOMAttrToString(eDataType, instanceValue);
case XSDPackage.DOM_DOCUMENT:
return convertDOMDocumentToString(eDataType, instanceValue);
case XSDPackage.DOM_ELEMENT:
return convertDOMElementToString(eDataType, instanceValue);
case XSDPackage.DOM_NODE:
return convertDOMNodeToString(eDataType, instanceValue);
case XSDPackage.VALUE:
return convertValueToString(eDataType, instanceValue);
default:
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
*
*
* @generated
*/
@Override
public XSDAnnotation createXSDAnnotation()
{
XSDAnnotationImpl xsdAnnotation = new XSDAnnotationImpl();
return xsdAnnotation;
}
/**
*
*
* @generated
*/
@Override
public XSDAttributeDeclaration createXSDAttributeDeclaration()
{
XSDAttributeDeclarationImpl xsdAttributeDeclaration = new XSDAttributeDeclarationImpl();
return xsdAttributeDeclaration;
}
/**
*
*
* @generated
*/
@Override
public XSDAttributeGroupDefinition createXSDAttributeGroupDefinition()
{
XSDAttributeGroupDefinitionImpl xsdAttributeGroupDefinition = new XSDAttributeGroupDefinitionImpl();
return xsdAttributeGroupDefinition;
}
/**
*
*
* @generated
*/
@Override
public XSDAttributeUse createXSDAttributeUse()
{
XSDAttributeUseImpl xsdAttributeUse = new XSDAttributeUseImpl();
return xsdAttributeUse;
}
/**
*
*
* @generated
*/
@Override
public XSDBoundedFacet createXSDBoundedFacet()
{
XSDBoundedFacetImpl xsdBoundedFacet = new XSDBoundedFacetImpl();
return xsdBoundedFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDCardinalityFacet createXSDCardinalityFacet()
{
XSDCardinalityFacetImpl xsdCardinalityFacet = new XSDCardinalityFacetImpl();
return xsdCardinalityFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDComplexTypeDefinition createXSDComplexTypeDefinition()
{
XSDComplexTypeDefinitionImpl xsdComplexTypeDefinition = new XSDComplexTypeDefinitionImpl();
return xsdComplexTypeDefinition;
}
/**
*
*
* @generated
*/
@Override
public XSDDiagnostic createXSDDiagnostic()
{
XSDDiagnosticImpl xsdDiagnostic = new XSDDiagnosticImpl();
return xsdDiagnostic;
}
/**
*
*
* @generated
*/
@Override
public XSDElementDeclaration createXSDElementDeclaration()
{
XSDElementDeclarationImpl xsdElementDeclaration = new XSDElementDeclarationImpl();
return xsdElementDeclaration;
}
/**
*
*
* @generated
*/
@Override
public XSDEnumerationFacet createXSDEnumerationFacet()
{
XSDEnumerationFacetImpl xsdEnumerationFacet = new XSDEnumerationFacetImpl();
return xsdEnumerationFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDFractionDigitsFacet createXSDFractionDigitsFacet()
{
XSDFractionDigitsFacetImpl xsdFractionDigitsFacet = new XSDFractionDigitsFacetImpl();
return xsdFractionDigitsFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDIdentityConstraintDefinition createXSDIdentityConstraintDefinition()
{
XSDIdentityConstraintDefinitionImpl xsdIdentityConstraintDefinition = new XSDIdentityConstraintDefinitionImpl();
return xsdIdentityConstraintDefinition;
}
/**
*
*
* @generated
*/
@Override
public XSDImport createXSDImport()
{
XSDImportImpl xsdImport = new XSDImportImpl();
return xsdImport;
}
/**
*
*
* @generated
*/
@Override
public XSDInclude createXSDInclude()
{
XSDIncludeImpl xsdInclude = new XSDIncludeImpl();
return xsdInclude;
}
/**
*
*
* @generated
*/
@Override
public XSDLengthFacet createXSDLengthFacet()
{
XSDLengthFacetImpl xsdLengthFacet = new XSDLengthFacetImpl();
return xsdLengthFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDMaxExclusiveFacet createXSDMaxExclusiveFacet()
{
XSDMaxExclusiveFacetImpl xsdMaxExclusiveFacet = new XSDMaxExclusiveFacetImpl();
return xsdMaxExclusiveFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDMaxInclusiveFacet createXSDMaxInclusiveFacet()
{
XSDMaxInclusiveFacetImpl xsdMaxInclusiveFacet = new XSDMaxInclusiveFacetImpl();
return xsdMaxInclusiveFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDMaxLengthFacet createXSDMaxLengthFacet()
{
XSDMaxLengthFacetImpl xsdMaxLengthFacet = new XSDMaxLengthFacetImpl();
return xsdMaxLengthFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDMinExclusiveFacet createXSDMinExclusiveFacet()
{
XSDMinExclusiveFacetImpl xsdMinExclusiveFacet = new XSDMinExclusiveFacetImpl();
return xsdMinExclusiveFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDMinInclusiveFacet createXSDMinInclusiveFacet()
{
XSDMinInclusiveFacetImpl xsdMinInclusiveFacet = new XSDMinInclusiveFacetImpl();
return xsdMinInclusiveFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDMinLengthFacet createXSDMinLengthFacet()
{
XSDMinLengthFacetImpl xsdMinLengthFacet = new XSDMinLengthFacetImpl();
return xsdMinLengthFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDModelGroup createXSDModelGroup()
{
XSDModelGroupImpl xsdModelGroup = new XSDModelGroupImpl();
return xsdModelGroup;
}
/**
*
*
* @generated
*/
@Override
public XSDModelGroupDefinition createXSDModelGroupDefinition()
{
XSDModelGroupDefinitionImpl xsdModelGroupDefinition = new XSDModelGroupDefinitionImpl();
return xsdModelGroupDefinition;
}
/**
*
*
* @generated
*/
@Override
public XSDNotationDeclaration createXSDNotationDeclaration()
{
XSDNotationDeclarationImpl xsdNotationDeclaration = new XSDNotationDeclarationImpl();
return xsdNotationDeclaration;
}
/**
*
*
* @generated
*/
@Override
public XSDNumericFacet createXSDNumericFacet()
{
XSDNumericFacetImpl xsdNumericFacet = new XSDNumericFacetImpl();
return xsdNumericFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDOrderedFacet createXSDOrderedFacet()
{
XSDOrderedFacetImpl xsdOrderedFacet = new XSDOrderedFacetImpl();
return xsdOrderedFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDParticle createXSDParticle()
{
XSDParticleImpl xsdParticle = new XSDParticleImpl();
return xsdParticle;
}
/**
*
*
* @generated
*/
@Override
public XSDPatternFacet createXSDPatternFacet()
{
XSDPatternFacetImpl xsdPatternFacet = new XSDPatternFacetImpl();
return xsdPatternFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDRedefine createXSDRedefine()
{
XSDRedefineImpl xsdRedefine = new XSDRedefineImpl();
return xsdRedefine;
}
/**
*
*
* @generated
*/
@Override
public XSDSchema createXSDSchema()
{
XSDSchemaImpl xsdSchema = new XSDSchemaImpl();
return xsdSchema;
}
/**
*
*
* @generated
*/
@Override
public XSDSimpleTypeDefinition createXSDSimpleTypeDefinition()
{
XSDSimpleTypeDefinitionImpl xsdSimpleTypeDefinition = new XSDSimpleTypeDefinitionImpl();
return xsdSimpleTypeDefinition;
}
/**
*
*
* @generated
*/
@Override
public XSDTotalDigitsFacet createXSDTotalDigitsFacet()
{
XSDTotalDigitsFacetImpl xsdTotalDigitsFacet = new XSDTotalDigitsFacetImpl();
return xsdTotalDigitsFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDWhiteSpaceFacet createXSDWhiteSpaceFacet()
{
XSDWhiteSpaceFacetImpl xsdWhiteSpaceFacet = new XSDWhiteSpaceFacetImpl();
return xsdWhiteSpaceFacet;
}
/**
*
*
* @generated
*/
@Override
public XSDWildcard createXSDWildcard()
{
XSDWildcardImpl xsdWildcard = new XSDWildcardImpl();
return xsdWildcard;
}
/**
*
*
* @generated
*/
@Override
public XSDXPathDefinition createXSDXPathDefinition()
{
XSDXPathDefinitionImpl xsdxPathDefinition = new XSDXPathDefinitionImpl();
return xsdxPathDefinition;
}
/**
*
*
* @generated
*/
public XSDAttributeUseCategory createXSDAttributeUseCategoryFromString(EDataType eDataType, String initialValue)
{
XSDAttributeUseCategory result = XSDAttributeUseCategory.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDAttributeUseCategoryToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDCardinality createXSDCardinalityFromString(EDataType eDataType, String initialValue)
{
XSDCardinality result = XSDCardinality.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDCardinalityToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDComplexFinal createXSDComplexFinalFromString(EDataType eDataType, String initialValue)
{
XSDComplexFinal result = XSDComplexFinal.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDComplexFinalToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDCompositor createXSDCompositorFromString(EDataType eDataType, String initialValue)
{
XSDCompositor result = XSDCompositor.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDCompositorToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDConstraint createXSDConstraintFromString(EDataType eDataType, String initialValue)
{
XSDConstraint result = XSDConstraint.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDConstraintToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDContentTypeCategory createXSDContentTypeCategoryFromString(EDataType eDataType, String initialValue)
{
XSDContentTypeCategory result = XSDContentTypeCategory.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDContentTypeCategoryToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDDerivationMethod createXSDDerivationMethodFromString(EDataType eDataType, String initialValue)
{
XSDDerivationMethod result = XSDDerivationMethod.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDDerivationMethodToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDDiagnosticSeverity createXSDDiagnosticSeverityFromString(EDataType eDataType, String initialValue)
{
XSDDiagnosticSeverity result = XSDDiagnosticSeverity.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDDiagnosticSeverityToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDDisallowedSubstitutions createXSDDisallowedSubstitutionsFromString(EDataType eDataType, String initialValue)
{
XSDDisallowedSubstitutions result = XSDDisallowedSubstitutions.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDDisallowedSubstitutionsToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDForm createXSDFormFromString(EDataType eDataType, String initialValue)
{
XSDForm result = XSDForm.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDFormToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDIdentityConstraintCategory createXSDIdentityConstraintCategoryFromString(EDataType eDataType, String initialValue)
{
XSDIdentityConstraintCategory result = XSDIdentityConstraintCategory.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDIdentityConstraintCategoryToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDNamespaceConstraintCategory createXSDNamespaceConstraintCategoryFromString(EDataType eDataType, String initialValue)
{
XSDNamespaceConstraintCategory result = XSDNamespaceConstraintCategory.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDNamespaceConstraintCategoryToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDOrdered createXSDOrderedFromString(EDataType eDataType, String initialValue)
{
XSDOrdered result = XSDOrdered.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDOrderedToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDProcessContents createXSDProcessContentsFromString(EDataType eDataType, String initialValue)
{
XSDProcessContents result = XSDProcessContents.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDProcessContentsToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDProhibitedSubstitutions createXSDProhibitedSubstitutionsFromString(EDataType eDataType, String initialValue)
{
XSDProhibitedSubstitutions result = XSDProhibitedSubstitutions.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDProhibitedSubstitutionsToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDSimpleFinal createXSDSimpleFinalFromString(EDataType eDataType, String initialValue)
{
XSDSimpleFinal result = XSDSimpleFinal.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDSimpleFinalToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDSubstitutionGroupExclusions createXSDSubstitutionGroupExclusionsFromString(EDataType eDataType, String initialValue)
{
XSDSubstitutionGroupExclusions result = XSDSubstitutionGroupExclusions.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDSubstitutionGroupExclusionsToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDVariety createXSDVarietyFromString(EDataType eDataType, String initialValue)
{
XSDVariety result = XSDVariety.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDVarietyToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDWhiteSpace createXSDWhiteSpaceFromString(EDataType eDataType, String initialValue)
{
XSDWhiteSpace result = XSDWhiteSpace.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDWhiteSpaceToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated
*/
public XSDXPathVariety createXSDXPathVarietyFromString(EDataType eDataType, String initialValue)
{
XSDXPathVariety result = XSDXPathVariety.get(initialValue);
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
*
*
* @generated
*/
public String convertXSDXPathVarietyToString(EDataType eDataType, Object instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
/**
*
*
* @generated modifiable
*/
public Attr createDOMAttrFromString(EDataType eDataType, String initialValue)
{
return (Attr)super.createFromString(eDataType, initialValue);
}
/**
*
*
* @generated modifiable
*/
public String convertDOMAttrToString(EDataType eDataType, Object instanceValue)
{
return super.convertToString(eDataType, instanceValue);
}
/**
*
*
* @generated modifiable
*/
public Document createDOMDocumentFromString(EDataType eDataType, String initialValue)
{
return (Document)super.createFromString(eDataType, initialValue);
}
/**
*
*
* @generated modifiable
*/
public String convertDOMDocumentToString(EDataType eDataType, Object instanceValue)
{
return super.convertToString(eDataType, instanceValue);
}
/**
*
*
* @generated modifiable
*/
public Element createDOMElementFromString(EDataType eDataType, String initialValue)
{
return (Element)super.createFromString(eDataType, initialValue);
}
/**
*
*
* @generated modifiable
*/
public String convertDOMElementToString(EDataType eDataType, Object instanceValue)
{
return super.convertToString(eDataType, instanceValue);
}
/**
*
*
* @generated modifiable
*/
public Node createDOMNodeFromString(EDataType eDataType, String initialValue)
{
return (Node)super.createFromString(eDataType, initialValue);
}
/**
*
*
* @generated modifiable
*/
public String convertDOMNodeToString(EDataType eDataType, Object instanceValue)
{
return super.convertToString(eDataType, instanceValue);
}
/**
*
*
* @generated modifiable
*/
public Object createValueFromString(EDataType eDataType, String initialValue)
{
return super.createFromString(eDataType, initialValue);
}
/**
*
*
* @generated modifiable
*/
public String convertValueToString(EDataType eDataType, Object instanceValue)
{
return super.convertToString(eDataType, instanceValue);
}
/**
*
*
* @generated
*/
@Override
public XSDPackage getXSDPackage()
{
return (XSDPackage)getEPackage();
}
/**
*
*
* @deprecated
* @generated
*/
@Deprecated
public static XSDPackage getPackage()
{
return XSDPackage.eINSTANCE;
}
} //XSDFactoryImpl