⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 owsfactoryimpl.java

📁 电子地图服务器,搭建自己的地图服务
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/**
 * <copyright>
 * </copyright>
 *
 * $Id: OwsFactoryImpl.java 7522 2007-09-12 22:00:10Z saul.farber $
 */
package net.opengis.ows.impl;

import java.util.List;

import net.opengis.ows.*;

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;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class OwsFactoryImpl extends EFactoryImpl implements OwsFactory {
	/**
     * Creates the default factory implementation.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public static OwsFactory init() {
        try {
            OwsFactory theOwsFactory = (OwsFactory)EPackage.Registry.INSTANCE.getEFactory("http:///net/opengis/ows.ecore"); 
            if (theOwsFactory != null) {
                return theOwsFactory;
            }
        }
        catch (Exception exception) {
            EcorePlugin.INSTANCE.log(exception);
        }
        return new OwsFactoryImpl();
    }

	/**
     * Creates an instance of the factory.
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public OwsFactoryImpl() {
        super();
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public EObject create(EClass eClass) {
        switch (eClass.getClassifierID()) {
            case OwsPackage.ACCEPT_FORMATS_TYPE: return createAcceptFormatsType();
            case OwsPackage.ACCEPT_VERSIONS_TYPE: return createAcceptVersionsType();
            case OwsPackage.ADDRESS_TYPE: return createAddressType();
            case OwsPackage.BOUNDING_BOX_TYPE: return createBoundingBoxType();
            case OwsPackage.CAPABILITIES_BASE_TYPE: return createCapabilitiesBaseType();
            case OwsPackage.CODE_TYPE: return createCodeType();
            case OwsPackage.CONTACT_TYPE: return createContactType();
            case OwsPackage.DCP_TYPE: return createDCPType();
            case OwsPackage.DESCRIPTION_TYPE: return createDescriptionType();
            case OwsPackage.DOCUMENT_ROOT: return createDocumentRoot();
            case OwsPackage.DOMAIN_TYPE: return createDomainType();
            case OwsPackage.EXCEPTION_REPORT_TYPE: return createExceptionReportType();
            case OwsPackage.EXCEPTION_TYPE: return createExceptionType();
            case OwsPackage.GET_CAPABILITIES_TYPE: return createGetCapabilitiesType();
            case OwsPackage.HTTP_TYPE: return createHTTPType();
            case OwsPackage.IDENTIFICATION_TYPE: return createIdentificationType();
            case OwsPackage.KEYWORDS_TYPE: return createKeywordsType();
            case OwsPackage.METADATA_TYPE: return createMetadataType();
            case OwsPackage.ONLINE_RESOURCE_TYPE: return createOnlineResourceType();
            case OwsPackage.OPERATION_TYPE: return createOperationType();
            case OwsPackage.OPERATIONS_METADATA_TYPE: return createOperationsMetadataType();
            case OwsPackage.REQUEST_METHOD_TYPE: return createRequestMethodType();
            case OwsPackage.RESPONSIBLE_PARTY_SUBSET_TYPE: return createResponsiblePartySubsetType();
            case OwsPackage.RESPONSIBLE_PARTY_TYPE: return createResponsiblePartyType();
            case OwsPackage.SECTIONS_TYPE: return createSectionsType();
            case OwsPackage.SERVICE_IDENTIFICATION_TYPE: return createServiceIdentificationType();
            case OwsPackage.SERVICE_PROVIDER_TYPE: return createServiceProviderType();
            case OwsPackage.TELEPHONE_TYPE: return createTelephoneType();
            case OwsPackage.WGS84_BOUNDING_BOX_TYPE: return createWGS84BoundingBoxType();
            default:
                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
        }
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public Object createFromString(EDataType eDataType, String initialValue) {
        switch (eDataType.getClassifierID()) {
            case OwsPackage.MIME_TYPE:
                return createMimeTypeFromString(eDataType, initialValue);
            case OwsPackage.VERSION_TYPE:
                return createVersionTypeFromString(eDataType, initialValue);
            case OwsPackage.POSITION_TYPE:
                return createPositionTypeFromString(eDataType, initialValue);
            case OwsPackage.UPDATE_SEQUENCE_TYPE:
                return createUpdateSequenceTypeFromString(eDataType, initialValue);
            default:
                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
        }
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public String convertToString(EDataType eDataType, Object instanceValue) {
        switch (eDataType.getClassifierID()) {
            case OwsPackage.MIME_TYPE:
                return convertMimeTypeToString(eDataType, instanceValue);
            case OwsPackage.VERSION_TYPE:
                return convertVersionTypeToString(eDataType, instanceValue);
            case OwsPackage.POSITION_TYPE:
                return convertPositionTypeToString(eDataType, instanceValue);
            case OwsPackage.UPDATE_SEQUENCE_TYPE:
                return convertUpdateSequenceTypeToString(eDataType, instanceValue);
            default:
                throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
        }
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public AcceptFormatsType createAcceptFormatsType() {
        AcceptFormatsTypeImpl acceptFormatsType = new AcceptFormatsTypeImpl();
        return acceptFormatsType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public AcceptVersionsType createAcceptVersionsType() {
        AcceptVersionsTypeImpl acceptVersionsType = new AcceptVersionsTypeImpl();
        return acceptVersionsType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public AddressType createAddressType() {
        AddressTypeImpl addressType = new AddressTypeImpl();
        return addressType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public BoundingBoxType createBoundingBoxType() {
        BoundingBoxTypeImpl boundingBoxType = new BoundingBoxTypeImpl();
        return boundingBoxType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public CapabilitiesBaseType createCapabilitiesBaseType() {
        CapabilitiesBaseTypeImpl capabilitiesBaseType = new CapabilitiesBaseTypeImpl();
        return capabilitiesBaseType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public CodeType createCodeType() {
        CodeTypeImpl codeType = new CodeTypeImpl();
        return codeType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public ContactType createContactType() {
        ContactTypeImpl contactType = new ContactTypeImpl();
        return contactType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public DCPType createDCPType() {
        DCPTypeImpl dcpType = new DCPTypeImpl();
        return dcpType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public DescriptionType createDescriptionType() {
        DescriptionTypeImpl descriptionType = new DescriptionTypeImpl();
        return descriptionType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public DocumentRoot createDocumentRoot() {
        DocumentRootImpl documentRoot = new DocumentRootImpl();
        return documentRoot;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public DomainType createDomainType() {
        DomainTypeImpl domainType = new DomainTypeImpl();
        return domainType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
     * @generated
     */
	public ExceptionReportType createExceptionReportType() {
        ExceptionReportTypeImpl exceptionReportType = new ExceptionReportTypeImpl();
        return exceptionReportType;
    }

	/**
     * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -