fr.inrialpes.exmo.align.impl
Enum Namespace
java.lang.Object
java.lang.Enum<Namespace>
fr.inrialpes.exmo.align.impl.Namespace
- All Implemented Interfaces:
- Serializable, Comparable<Namespace>
public enum Namespace
- extends Enum<Namespace>
ALIGNMENT
public static final Namespace ALIGNMENT
ALIGNSVC
public static final Namespace ALIGNSVC
EDOAL
public static final Namespace EDOAL
DUBLIN_CORE
public static final Namespace DUBLIN_CORE
RDF_SCHEMA
public static final Namespace RDF_SCHEMA
SOAP_ENV
public static final Namespace SOAP_ENV
XSD
public static final Namespace XSD
XSI
public static final Namespace XSI
RDF
public static final Namespace RDF
ATLMAP
public static final Namespace ATLMAP
uri
public final String uri
shortCut
public final String shortCut
addSharp
private final boolean addSharp
- records if a sharp must be concatenated to the namespace
prefix
public final String prefix
register
private static final Map<String,Namespace> register
values
public static Namespace[] 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 (Namespace c : Namespace.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Namespace 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
getUri
public String getUri()
getUriPrefix
public String getUriPrefix()
getShortCut
public String getShortCut()
getSharp
public boolean getSharp()
getNSByUri
public static Namespace getNSByUri(String url)
- Determines a namespace instance depending on it's url.
- Parameters:
url
- the url of the namespace.
- Returns:
- the namespace instance, or null, if no mathing namespace could be
found.
(C) INRIA & friends, 2003-2010