src.gov.nasa.worldwind.wms.WMSNamespaceContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* 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: Prefix URI wms http://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);
}
}