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

📄 basicmetadataexporter.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        preventAccessIfExportHasNotCompleted();

        return _abstractData;
    }

    /**
     * Retrieves the Brief Metadata from the CS/W response.
     *
     * @return {@link String} containing the Brief Metadata
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getBriefMetadata() {
        preventAccessIfExportHasNotCompleted();

        return _briefMetadata;
    }

    /**
     * Retrieves the Full Metadata field from the CS/W response.
     *
     * @return {@link String} containing the Full Metadata
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getFullMetadata() {
        preventAccessIfExportHasNotCompleted();

        return _fullMetadata;
    }

    /**
     * Retrieves the Record ID, or GUID, that represents this metadata record.
     * This value is extracted from the {@code <identifier>} element of the CS/W
     * Response.
     *
     * @return {@link String} containing the value of the record ID.
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getRecordID() {
        preventAccessIfExportHasNotCompleted();

        return _recordID;
    }

    /**
     * Retrieves an indicator of the type of data to which the CS/W record
     * points. This value is derived from the {@code <type>} element of the CS/W
     * Response.
     *
     * @return {@code boolean} {@code true} if the data represents live data or
     *         a map; {@code false} otherwise.
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public boolean isLiveDataOrMap() {
        preventAccessIfExportHasNotCompleted();

        return _isLiveDataOrMap;
    }

    /**
     * Retrieves a URL to the actual metadata document for the resource pointed
     * to by this CS/W response. This value is derived from the
     * {@code <references>} element in the CS/W response document.
     *
     * @return {@link String} containing URL of the Metadata Resource
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getMetadataResourceURL() {
        preventAccessIfExportHasNotCompleted();

        return _metadataResourceURL;
    }

    /**
     * Retrieves the Summary Metadata for the metadata document to which this
     * CS/W response refers.
     *
     * @return {@link String} containing the Summary Metadata.
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getSummaryMetadata() {
        preventAccessIfExportHasNotCompleted();

        return _summaryMetadata;
    }

    /**
     * Retrieves the Title of the resource pointed to by the metadata document
     * to which this CS/W response refers. This field is derived from the
     * {@code <title>} element of the CS/W response.
     *
     * @return {@link String} containing the Title.
     * @throws IllegalStateException
     *             if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getTitle() {
        preventAccessIfExportHasNotCompleted();

        return _title;
    }

    /**
     * Retrieves the Provenance of the resource pointed to by the metadata document
     * to which this CS/W response refers.  This field is derived from the
     * {@code <provenance>} element of the CS/W response.
     *
     * @return {@link String} containing the Provenance.
     * @throws IllegalStateException if the exporter is not finished working.
     * @see #preventAccessIfExportHasNotCompleted()
     */
    public String getProvenance() {
        preventAccessIfExportHasNotCompleted();

        return _provenance;
    }

    /**
     * Utility method that will throw an {@link IllegalStateException} if this
     * exporter is not finished working.
     *
     * @throws IllegalStateException
     *             if {@link #isFinishedExporting()} returns {@code false}.
     * @see #isFinishedExporting()
     */
    private void preventAccessIfExportHasNotCompleted() {
        if (!isFinishedExporting()) {
            throw new IllegalStateException(
                "Data cannot be retrieved; exporter has not completed the export operation");
        }
    }

    /**
     * Checks the state of the exporter to ensure that the
     * {@link #setRaw(Object)()} has been invoked, thus requiring this object to
     * be reset in preparation for a new export to occur.
     *
     * @return {@code boolean} {@code true} if the internal state of the
     *         exporter is {@link MetadataExporterState#NEEDS_RESET};
     *         {@code false} otherwise.
     */
    public boolean isInNeedOfReset() {
        return _state == MetadataExporterState.NEEDS_RESET;
    }

    /**
     * Checks the state of the exporter to ensure that the {@link #begin()} has
     * finished its operation and the exporter is in the proper state for
     * {@link #export()} to be invoked.
     *
     * @return {@code boolean} {@code true} if the internal state of the
     *         exporter is {@link MetadataExporterState#READY_TO_EXPORT};
     *         {@code false} otherwise.
     */
    public boolean isReadyToExport() {
        return _state == MetadataExporterState.READY_TO_EXPORT;
    }

    /**
     * Checks the state of the exporter to ensure that the {@link #export()} has
     * finished its operation.
     *
     * @return {@code boolean} {@code true} if the internal state of the
     *         exporter is {@link MetadataExporterState#EXPORT_FINISHED};
     *         {@code false} otherwise.
     */
    public boolean isFinishedExporting() {
        return _state == MetadataExporterState.EXPORT_FINISHED;
    }

    /**
     * Gets the minimum longitude value for the {@link CswRecord}.
     *
     * @return min longitude value.
     */
    public double getMinX() {
        preventAccessIfExportHasNotCompleted();

        return _minx;
    }

    /**
     * Gets the minimum latitude value for the {@link CswRecord}.
     *
     * @return min latitude value.
     */
    public double getMinY() {
        preventAccessIfExportHasNotCompleted();

        return _miny;
    }

    /**
     * Gets the maximum longitude value for the {@link CswRecord}.
     *
     * @return max longitude value.
     */
    public double getMaxX() {
        preventAccessIfExportHasNotCompleted();

        return _maxx;
    }

    /**
     * Gets the maximum latitude value for the {@link CswRecord}.
     *
     * @return max latitude value.
     */
    public double getMaxY() {
        preventAccessIfExportHasNotCompleted();

        return _maxy;
    }

    /**
     * {@link Boolean} value indicating whether or not the {@link CswRecord}
     * has an associated geographic location.
     *
     * @return true if the {@link CswRecord} has a geographic location,
     *                         false otherwise.
     */
    public boolean hasGeometryData() {
        return _hasGeometryData;
    }

    /**
     * Gets the {@link String} date of the last time the {@link CswRecord}
     * was modified.
     *
     * @return {@link String} data modified.
     */
    public String getDateModified() {
        return _dateModified;
    }

    /**
     * Gets the content type of the actual metadata item stored in the
     * metadata repository.
     *
     * @return {@link String} content type.
     */
    public String getMetadataContentType() {
        return _metadataContentType;
    }
}

⌨️ 快捷键说明

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