abstractmapservicemetadataexporter.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 81 行

JAVA
81
字号
package com.esri.solutions.jitk.common.metadata;

import com.esri.solutions.jitk.common.enums.ServiceType;


/**
 * Abstract class that implements the {@link IMetadataExporter} interface.  Classes
 * that wish to export map service information should extend this class.
 */
public abstract class AbstractMapServiceMetadataExporter
    implements IMetadataExporter {
    /**
     * Url of the service.
     */
    protected String _serviceUrl = null;

    /**
     * Name of the service.
     */
    protected String _serviceName = null;

    /**
     * {@link ServiceType} to identify between different service types.
     */
    protected ServiceType _serviceType = null;

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.common.metadata.IMetadataExporter#begin()
     */
    public abstract void begin();

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.common.metadata.IMetadataExporter#end()
     */
    public abstract void end();

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.common.metadata.IMetadataExporter#export()
     */
    public abstract void export();

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.common.metadata.IMetadataExporter#getExporterId()
     */
    public abstract String getExporterId();

    /*
     * (non-Javadoc)
     * @see com.esri.solutions.jitk.common.metadata.IMetadataExporter#setRaw(java.lang.Object)
     */
    public abstract void setRaw(Object raw);

    /**
     * Retrieves the service URL.
     * @return {@link String} containing the service's URL.
     */
    public String getServiceUrl() {
        return _serviceUrl;
    }

    /**
     * Retrieves the service name.
     * @return {@link String} containing the service's name.
     */
    public String getServiceName() {
        return _serviceName;
    }

    /**
     * Retrieves the service type.
     * @return {@link ServiceType} containing the service's type.
     */
    public ServiceType getServiceType() {
        return _serviceType;
    }
}

⌨️ 快捷键说明

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