All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.gov.nasa.worldwind.wms.WMSNamespaceContext Maven / Gradle / Ivy

Go to download

World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.

There is a newer version: 2.0.0-986
Show newest version
/*
 * Copyright (C) 2012 United States Government as represented by the Administrator of the
 * National Aeronautics and Space Administration.
 * All Rights Reserved.
 */
package gov.nasa.worldwind.wms;

import gov.nasa.worldwind.util.BasicNamespaceContext;

import javax.xml.XMLConstants;

/**
 * WMSNamespaceContext is an implementation of {@link javax.xml.namespace.NamespaceContext} which provides an XML
 * Namespace context necessary for parsing WMS documents, such as a WMS Capabilities document.
 *
 * @author dcollins
 * @version $Id: WMSNamespaceContext.java 1171 2013-02-11 21:45:02Z dcollins $
 */
public class WMSNamespaceContext extends BasicNamespaceContext
{
    public static final String WMS_NS_PREFIX = "wms";
    public static final String WMS_NS_URI = "http://www.opengis.net/wms";

    /**
     * Sole constructor for WMSNamespaceContext. In addition to the namespaces configured by the superclass constructor
     * {@link gov.nasa.worldwind.util.BasicNamespaceContext#BasicNamespaceContext()}, this configures the following
     * namespaces: 
     * 
PrefixURI
wmshttp://www.opengis.net/wms
DEFAULT_NS_PREFIX ("")http://www.opengis.net/wms
*/ public WMSNamespaceContext() { this.addNamespace(WMS_NS_PREFIX, WMS_NS_URI); this.addNamespace(XMLConstants.DEFAULT_NS_PREFIX, WMS_NS_URI); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy