Package com.esri.gpt.server.csw.provider.components

Source Code of com.esri.gpt.server.csw.provider.components.CswNamespaces

/* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri Inc. licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.esri.gpt.server.csw.provider.components;
import com.esri.gpt.catalog.schema.NamespaceContextImpl;
import com.esri.gpt.catalog.schema.Namespaces;
import javax.xml.namespace.NamespaceContext;

/**
* Defines CSW name spaces.
*/
public class CswNamespaces {
 
  /** class variables ========================================================= */
     
  /** URI CSW - "http://www.opengis.net/cat/csw/2.0.2" */
  public static final String URI_CSW = "http://www.opengis.net/cat/csw/2.0.2";
 
  /** URI DC - "http://purl.org/dc/elements/1.1/" */
  public static final String URI_DC = "http://purl.org/dc/elements/1.1/";
 
  /** URI dcmiBox - "http://dublincore.org/documents/2000/07/11/dcmi-box/" */
  public static final String URI_dcmiBox = "http://dublincore.org/documents/2000/07/11/dcmi-box/";
 
  /** URI DCT - "http://purl.org/dc/terms/" */
  public static final String URI_DCT = "http://purl.org/dc/terms/";
 
  /** URI GML - "http://www.opengis.net/gml" */
  public static final String URI_GML = "http://www.opengis.net/gml";
 
  /** URI INSPIRE_COMMON - "http://inspire.ec.europa.eu/schemas/common/1.0" */
  public static final String URI_INSPIRE_COMMON = "http://inspire.ec.europa.eu/schemas/common/1.0";
 
  /** URI INSPIRE_DS - "http://inspire.ec.europa.eu/schemas/inspire_ds/1.0" */
  public static final String URI_INSPIRE_DS = "http://inspire.ec.europa.eu/schemas/inspire_ds/1.0";
 
  /** URI OGC - "http://www.opengis.net/ogc" */
  public static final String URI_OGC = "http://www.opengis.net/ogc";
 
  /** URI OWS - "http://www.opengis.net/ows" */
  public static final String URI_OWS = "http://www.opengis.net/ows";

  /** URI SOAP - "http://www.w3.org/2001/12/soap-envelope" */
  public static final String URI_SOAP = "http://www.w3.org/2001/12/soap-envelope";
 
  /** URI SOAP_ENV - "http://schemas.xmlsoap.org/soap/envelope/" */
  public static final String URI_SOAP_ENV = "http://schemas.xmlsoap.org/soap/envelope/";
 
  /** URI_SOAP_2003_05 - "http://schemas.xmlsoap.org/soap/envelope/" */
  public static final String URI_SOAP_2003_05 = "http://www.w3.org/2003/05/soap-envelope";
 
  /** URI TCEXT - "http://www.conterra.de/catalog/ext" */
  public static final String URI_TCEXT = "http://www.conterra.de/catalog/ext";
 
  /** URI XLINK - "http://www.w3.org/1999/xlink" */
  public static final String URI_XLINK = "http://www.w3.org/1999/xlink";
 
  /** URI XSD - "http://www.w3.org/2001/XMLSchema" */
  public static final String URI_XSD = "http://www.w3.org/2001/XMLSchema";
     
  /** constructors ============================================================ */
     
  /** Default constructor. */
  public CswNamespaces() {}
 
  /** methods ================================================================= */
 
  /**
   * Makes a context for CSW name spaces.
   * @return the name space context
   */
  public NamespaceContext makeNamespaceContext() {
    return new NamespaceContextImpl(makeNamespaces());
  }
 
  /**
   * Makes CSW name spaces.
   * @return the CSW name spaces
   */
  private Namespaces makeNamespaces() {
    Namespaces namespaces = new Namespaces();
    namespaces.add("csw",URI_CSW);
    namespaces.add("dc", URI_DC);
    namespaces.add("dct",URI_DCT);
    namespaces.add("gml",URI_GML);
    namespaces.add("inspire_common",URI_INSPIRE_COMMON);
    namespaces.add("inspire_ds",URI_INSPIRE_DS);
    namespaces.add("ogc",URI_OGC);
    namespaces.add("ows",URI_OWS);
    namespaces.add("soap",URI_SOAP);
    namespaces.add("SOAP-ENV",URI_SOAP_ENV);
    namespaces.add("soap_2003_05",URI_SOAP_2003_05);
    namespaces.add("tcExt",URI_TCEXT);
    namespaces.add("xlink",URI_XLINK);
    namespaces.add("xsd",URI_XSD);
    return namespaces;
  }

}
TOP

Related Classes of com.esri.gpt.server.csw.provider.components.CswNamespaces

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.