/** * * * * $Id$ */ package net.opengis.wps.impl; import java.math.BigInteger; import net.opengis.wps.*; 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.emf.ecore.xml.type.XMLTypeFactory; import org.eclipse.emf.ecore.xml.type.XMLTypePackage; /** * * An implementation of the model Factory. * * @generated */ public class WpsFactoryImpl extends EFactoryImpl implements WpsFactory { /** * Creates the default factory implementation. * * * @generated */ public static WpsFactory init() { try { WpsFactory theWpsFactory = (WpsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.opengis.net/wps/1.0.0"); if (theWpsFactory != null) { return theWpsFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new WpsFactoryImpl(); } /** * Creates an instance of the factory. * * * @generated */ public WpsFactoryImpl() { super(); } /** * * * @generated */ public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case WpsPackage.BODY_REFERENCE_TYPE: return createBodyReferenceType(); case WpsPackage.COMPLEX_DATA_COMBINATIONS_TYPE: return createComplexDataCombinationsType(); case WpsPackage.COMPLEX_DATA_COMBINATION_TYPE: return createComplexDataCombinationType(); case WpsPackage.COMPLEX_DATA_DESCRIPTION_TYPE: return createComplexDataDescriptionType(); case WpsPackage.COMPLEX_DATA_TYPE: return createComplexDataType(); case WpsPackage.CR_SS_TYPE: return createCRSsType(); case WpsPackage.DATA_INPUTS_TYPE: return createDataInputsType(); case WpsPackage.DATA_INPUTS_TYPE1: return createDataInputsType1(); case WpsPackage.DATA_TYPE: return createDataType(); case WpsPackage.DEFAULT_TYPE: return createDefaultType(); case WpsPackage.DEFAULT_TYPE1: return createDefaultType1(); case WpsPackage.DEFAULT_TYPE2: return createDefaultType2(); case WpsPackage.DESCRIBE_PROCESS_TYPE: return createDescribeProcessType(); case WpsPackage.DESCRIPTION_TYPE: return createDescriptionType(); case WpsPackage.DOCUMENT_OUTPUT_DEFINITION_TYPE: return createDocumentOutputDefinitionType(); case WpsPackage.DOCUMENT_ROOT: return createDocumentRoot(); case WpsPackage.EXECUTE_RESPONSE_TYPE: return createExecuteResponseType(); case WpsPackage.EXECUTE_TYPE: return createExecuteType(); case WpsPackage.GET_CAPABILITIES_TYPE: return createGetCapabilitiesType(); case WpsPackage.HEADER_TYPE: return createHeaderType(); case WpsPackage.INPUT_DESCRIPTION_TYPE: return createInputDescriptionType(); case WpsPackage.INPUT_REFERENCE_TYPE: return createInputReferenceType(); case WpsPackage.INPUT_TYPE: return createInputType(); case WpsPackage.LANGUAGES_TYPE: return createLanguagesType(); case WpsPackage.LANGUAGES_TYPE1: return createLanguagesType1(); case WpsPackage.LITERAL_DATA_TYPE: return createLiteralDataType(); case WpsPackage.LITERAL_INPUT_TYPE: return createLiteralInputType(); case WpsPackage.LITERAL_OUTPUT_TYPE: return createLiteralOutputType(); case WpsPackage.OUTPUT_DATA_TYPE: return createOutputDataType(); case WpsPackage.OUTPUT_DEFINITIONS_TYPE: return createOutputDefinitionsType(); case WpsPackage.OUTPUT_DEFINITION_TYPE: return createOutputDefinitionType(); case WpsPackage.OUTPUT_DESCRIPTION_TYPE: return createOutputDescriptionType(); case WpsPackage.OUTPUT_REFERENCE_TYPE: return createOutputReferenceType(); case WpsPackage.PROCESS_BRIEF_TYPE: return createProcessBriefType(); case WpsPackage.PROCESS_DESCRIPTIONS_TYPE: return createProcessDescriptionsType(); case WpsPackage.PROCESS_DESCRIPTION_TYPE: return createProcessDescriptionType(); case WpsPackage.PROCESS_FAILED_TYPE: return createProcessFailedType(); case WpsPackage.PROCESS_OFFERINGS_TYPE: return createProcessOfferingsType(); case WpsPackage.PROCESS_OUTPUTS_TYPE: return createProcessOutputsType(); case WpsPackage.PROCESS_OUTPUTS_TYPE1: return createProcessOutputsType1(); case WpsPackage.PROCESS_STARTED_TYPE: return createProcessStartedType(); case WpsPackage.REQUEST_BASE_TYPE: return createRequestBaseType(); case WpsPackage.RESPONSE_BASE_TYPE: return createResponseBaseType(); case WpsPackage.RESPONSE_DOCUMENT_TYPE: return createResponseDocumentType(); case WpsPackage.RESPONSE_FORM_TYPE: return createResponseFormType(); case WpsPackage.STATUS_TYPE: return createStatusType(); case WpsPackage.SUPPORTED_COMPLEX_DATA_INPUT_TYPE: return createSupportedComplexDataInputType(); case WpsPackage.SUPPORTED_COMPLEX_DATA_TYPE: return createSupportedComplexDataType(); case WpsPackage.SUPPORTED_CR_SS_TYPE: return createSupportedCRSsType(); case WpsPackage.SUPPORTED_UO_MS_TYPE: return createSupportedUOMsType(); case WpsPackage.UO_MS_TYPE: return createUOMsType(); case WpsPackage.VALUES_REFERENCE_TYPE: return createValuesReferenceType(); case WpsPackage.WPS_CAPABILITIES_TYPE: return createWPSCapabilitiesType(); case WpsPackage.WSDL_TYPE: return createWSDLType(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public Object createFromString(EDataType eDataType, String initialValue) { switch (eDataType.getClassifierID()) { case WpsPackage.METHOD_TYPE: return createMethodTypeFromString(eDataType, initialValue); case WpsPackage.METHOD_TYPE_OBJECT: return createMethodTypeObjectFromString(eDataType, initialValue); case WpsPackage.PERCENT_COMPLETED_TYPE: return createPercentCompletedTypeFromString(eDataType, initialValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public String convertToString(EDataType eDataType, Object instanceValue) { switch (eDataType.getClassifierID()) { case WpsPackage.METHOD_TYPE: return convertMethodTypeToString(eDataType, instanceValue); case WpsPackage.METHOD_TYPE_OBJECT: return convertMethodTypeObjectToString(eDataType, instanceValue); case WpsPackage.PERCENT_COMPLETED_TYPE: return convertPercentCompletedTypeToString(eDataType, instanceValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } } /** * * * @generated */ public BodyReferenceType createBodyReferenceType() { BodyReferenceTypeImpl bodyReferenceType = new BodyReferenceTypeImpl(); return bodyReferenceType; } /** * * * @generated */ public ComplexDataCombinationsType createComplexDataCombinationsType() { ComplexDataCombinationsTypeImpl complexDataCombinationsType = new ComplexDataCombinationsTypeImpl(); return complexDataCombinationsType; } /** * * * @generated */ public ComplexDataCombinationType createComplexDataCombinationType() { ComplexDataCombinationTypeImpl complexDataCombinationType = new ComplexDataCombinationTypeImpl(); return complexDataCombinationType; } /** * * * @generated */ public ComplexDataDescriptionType createComplexDataDescriptionType() { ComplexDataDescriptionTypeImpl complexDataDescriptionType = new ComplexDataDescriptionTypeImpl(); return complexDataDescriptionType; } /** * * * @generated */ public ComplexDataType createComplexDataType() { ComplexDataTypeImpl complexDataType = new ComplexDataTypeImpl(); return complexDataType; } /** * * * @generated */ public CRSsType createCRSsType() { CRSsTypeImpl crSsType = new CRSsTypeImpl(); return crSsType; } /** * * * @generated */ public DataInputsType createDataInputsType() { DataInputsTypeImpl dataInputsType = new DataInputsTypeImpl(); return dataInputsType; } /** * * * @generated */ public DataInputsType1 createDataInputsType1() { DataInputsType1Impl dataInputsType1 = new DataInputsType1Impl(); return dataInputsType1; } /** * * * @generated */ public DataType createDataType() { DataTypeImpl dataType = new DataTypeImpl(); return dataType; } /** * * * @generated */ public DefaultType createDefaultType() { DefaultTypeImpl defaultType = new DefaultTypeImpl(); return defaultType; } /** * * * @generated */ public DefaultType1 createDefaultType1() { DefaultType1Impl defaultType1 = new DefaultType1Impl(); return defaultType1; } /** * * * @generated */ public DefaultType2 createDefaultType2() { DefaultType2Impl defaultType2 = new DefaultType2Impl(); return defaultType2; } /** * * * @generated */ public DescribeProcessType createDescribeProcessType() { DescribeProcessTypeImpl describeProcessType = new DescribeProcessTypeImpl(); return describeProcessType; } /** * * * @generated */ public DescriptionType createDescriptionType() { DescriptionTypeImpl descriptionType = new DescriptionTypeImpl(); return descriptionType; } /** * * * @generated */ public DocumentOutputDefinitionType createDocumentOutputDefinitionType() { DocumentOutputDefinitionTypeImpl documentOutputDefinitionType = new DocumentOutputDefinitionTypeImpl(); return documentOutputDefinitionType; } /** * * * @generated */ public DocumentRoot createDocumentRoot() { DocumentRootImpl documentRoot = new DocumentRootImpl(); return documentRoot; } /** * * * @generated */ public ExecuteResponseType createExecuteResponseType() { ExecuteResponseTypeImpl executeResponseType = new ExecuteResponseTypeImpl(); return executeResponseType; } /** * * * @generated */ public ExecuteType createExecuteType() { ExecuteTypeImpl executeType = new ExecuteTypeImpl(); return executeType; } /** * * * @generated */ public GetCapabilitiesType createGetCapabilitiesType() { GetCapabilitiesTypeImpl getCapabilitiesType = new GetCapabilitiesTypeImpl(); return getCapabilitiesType; } /** * * * @generated */ public HeaderType createHeaderType() { HeaderTypeImpl headerType = new HeaderTypeImpl(); return headerType; } /** * * * @generated */ public InputDescriptionType createInputDescriptionType() { InputDescriptionTypeImpl inputDescriptionType = new InputDescriptionTypeImpl(); return inputDescriptionType; } /** * * * @generated */ public InputReferenceType createInputReferenceType() { InputReferenceTypeImpl inputReferenceType = new InputReferenceTypeImpl(); return inputReferenceType; } /** * * * @generated */ public InputType createInputType() { InputTypeImpl inputType = new InputTypeImpl(); return inputType; } /** * * * @generated */ public LanguagesType createLanguagesType() { LanguagesTypeImpl languagesType = new LanguagesTypeImpl(); return languagesType; } /** * * * @generated */ public LanguagesType1 createLanguagesType1() { LanguagesType1Impl languagesType1 = new LanguagesType1Impl(); return languagesType1; } /** * * * @generated */ public LiteralDataType createLiteralDataType() { LiteralDataTypeImpl literalDataType = new LiteralDataTypeImpl(); return literalDataType; } /** * * * @generated */ public LiteralInputType createLiteralInputType() { LiteralInputTypeImpl literalInputType = new LiteralInputTypeImpl(); return literalInputType; } /** * * * @generated */ public LiteralOutputType createLiteralOutputType() { LiteralOutputTypeImpl literalOutputType = new LiteralOutputTypeImpl(); return literalOutputType; } /** * * * @generated */ public OutputDataType createOutputDataType() { OutputDataTypeImpl outputDataType = new OutputDataTypeImpl(); return outputDataType; } /** * * * @generated */ public OutputDefinitionsType createOutputDefinitionsType() { OutputDefinitionsTypeImpl outputDefinitionsType = new OutputDefinitionsTypeImpl(); return outputDefinitionsType; } /** * * * @generated */ public OutputDefinitionType createOutputDefinitionType() { OutputDefinitionTypeImpl outputDefinitionType = new OutputDefinitionTypeImpl(); return outputDefinitionType; } /** * * * @generated */ public OutputDescriptionType createOutputDescriptionType() { OutputDescriptionTypeImpl outputDescriptionType = new OutputDescriptionTypeImpl(); return outputDescriptionType; } /** * * * @generated */ public OutputReferenceType createOutputReferenceType() { OutputReferenceTypeImpl outputReferenceType = new OutputReferenceTypeImpl(); return outputReferenceType; } /** * * * @generated */ public ProcessBriefType createProcessBriefType() { ProcessBriefTypeImpl processBriefType = new ProcessBriefTypeImpl(); return processBriefType; } /** * * * @generated */ public ProcessDescriptionsType createProcessDescriptionsType() { ProcessDescriptionsTypeImpl processDescriptionsType = new ProcessDescriptionsTypeImpl(); return processDescriptionsType; } /** * * * @generated */ public ProcessDescriptionType createProcessDescriptionType() { ProcessDescriptionTypeImpl processDescriptionType = new ProcessDescriptionTypeImpl(); return processDescriptionType; } /** * * * @generated */ public ProcessFailedType createProcessFailedType() { ProcessFailedTypeImpl processFailedType = new ProcessFailedTypeImpl(); return processFailedType; } /** * * * @generated */ public ProcessOfferingsType createProcessOfferingsType() { ProcessOfferingsTypeImpl processOfferingsType = new ProcessOfferingsTypeImpl(); return processOfferingsType; } /** * * * @generated */ public ProcessOutputsType createProcessOutputsType() { ProcessOutputsTypeImpl processOutputsType = new ProcessOutputsTypeImpl(); return processOutputsType; } /** * * * @generated */ public ProcessOutputsType1 createProcessOutputsType1() { ProcessOutputsType1Impl processOutputsType1 = new ProcessOutputsType1Impl(); return processOutputsType1; } /** * * * @generated */ public ProcessStartedType createProcessStartedType() { ProcessStartedTypeImpl processStartedType = new ProcessStartedTypeImpl(); return processStartedType; } /** * * * @generated */ public RequestBaseType createRequestBaseType() { RequestBaseTypeImpl requestBaseType = new RequestBaseTypeImpl(); return requestBaseType; } /** * * * @generated */ public ResponseBaseType createResponseBaseType() { ResponseBaseTypeImpl responseBaseType = new ResponseBaseTypeImpl(); return responseBaseType; } /** * * * @generated */ public ResponseDocumentType createResponseDocumentType() { ResponseDocumentTypeImpl responseDocumentType = new ResponseDocumentTypeImpl(); return responseDocumentType; } /** * * * @generated */ public ResponseFormType createResponseFormType() { ResponseFormTypeImpl responseFormType = new ResponseFormTypeImpl(); return responseFormType; } /** * * * @generated */ public StatusType createStatusType() { StatusTypeImpl statusType = new StatusTypeImpl(); return statusType; } /** * * * @generated */ public SupportedComplexDataInputType createSupportedComplexDataInputType() { SupportedComplexDataInputTypeImpl supportedComplexDataInputType = new SupportedComplexDataInputTypeImpl(); return supportedComplexDataInputType; } /** * * * @generated */ public SupportedComplexDataType createSupportedComplexDataType() { SupportedComplexDataTypeImpl supportedComplexDataType = new SupportedComplexDataTypeImpl(); return supportedComplexDataType; } /** * * * @generated */ public SupportedCRSsType createSupportedCRSsType() { SupportedCRSsTypeImpl supportedCRSsType = new SupportedCRSsTypeImpl(); return supportedCRSsType; } /** * * * @generated */ public SupportedUOMsType createSupportedUOMsType() { SupportedUOMsTypeImpl supportedUOMsType = new SupportedUOMsTypeImpl(); return supportedUOMsType; } /** * * * @generated */ public UOMsType createUOMsType() { UOMsTypeImpl uoMsType = new UOMsTypeImpl(); return uoMsType; } /** * * * @generated */ public ValuesReferenceType createValuesReferenceType() { ValuesReferenceTypeImpl valuesReferenceType = new ValuesReferenceTypeImpl(); return valuesReferenceType; } /** * * * @generated */ public WPSCapabilitiesType createWPSCapabilitiesType() { WPSCapabilitiesTypeImpl wpsCapabilitiesType = new WPSCapabilitiesTypeImpl(); return wpsCapabilitiesType; } /** * * * @generated */ public WSDLType createWSDLType() { WSDLTypeImpl wsdlType = new WSDLTypeImpl(); return wsdlType; } /** * * * @generated */ public MethodType createMethodTypeFromString(EDataType eDataType, String initialValue) { MethodType result = MethodType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; } /** * * * @generated */ public String convertMethodTypeToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); } /** * * * @generated */ public MethodType createMethodTypeObjectFromString(EDataType eDataType, String initialValue) { return createMethodTypeFromString(WpsPackage.eINSTANCE.getMethodType(), initialValue); } /** * * * @generated */ public String convertMethodTypeObjectToString(EDataType eDataType, Object instanceValue) { return convertMethodTypeToString(WpsPackage.eINSTANCE.getMethodType(), instanceValue); } /** * * * @generated */ public BigInteger createPercentCompletedTypeFromString(EDataType eDataType, String initialValue) { return (BigInteger)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.INTEGER, initialValue); } /** * * * @generated */ public String convertPercentCompletedTypeToString(EDataType eDataType, Object instanceValue) { return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.INTEGER, instanceValue); } /** * * * @generated */ public WpsPackage getWpsPackage() { return (WpsPackage)getEPackage(); } /** * * * @deprecated * @generated */ public static WpsPackage getPackage() { return WpsPackage.eINSTANCE; } } //WpsFactoryImpl