thredds.catalog2.xml.names
Enum CatalogNamespace
java.lang.Object
java.lang.Enum<CatalogNamespace>
thredds.catalog2.xml.names.CatalogNamespace
- All Implemented Interfaces:
- Serializable, Comparable<CatalogNamespace>
public enum CatalogNamespace
- extends Enum<CatalogNamespace>
Represent an XML namespace inlucing, if available, the location of the
XML Schema for the namespace as both a local resource name and as a
remote resource URL.
- Since:
- 4.0
- Author:
- edavis
CATALOG_1_0
public static final CatalogNamespace CATALOG_1_0
CATALOG_0_6
public static final CatalogNamespace CATALOG_0_6
XLINK
public static final CatalogNamespace XLINK
values
public static CatalogNamespace[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CatalogNamespace c : CatalogNamespace.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CatalogNamespace valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getNamespace
public static CatalogNamespace getNamespace(String namespaceUri)
getStandardPrefix
public String getStandardPrefix()
getNamespaceUri
public String getNamespaceUri()
getSchemaLocalResourceName
public String getSchemaLocalResourceName()
getSchemaRemoteResourceUri
public URI getSchemaRemoteResourceUri()
getSchemaAsInputStream
public InputStream getSchemaAsInputStream()
throws IOException
- Throws:
IOException
getSchema
public Schema getSchema()
throws IOException,
SAXException
- Throws:
IOException
SAXException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.