Modifier and Type | Method and Description |
---|---|
void |
clean()
Cleans the registry.
|
Namespace |
getFromPrefix(String prefix)
Returns a
Namespace identified by the given prefix , or null if no
namespace is registered with this prefix . |
Namespace |
getFromUri(String uri)
Returns a
Namespace identified by the given uri , or null if no
namespace is registered with this uri . |
static Namespace.Registry |
getInstance()
Returns the instance of this class.
|
Iterable<String> |
getPrefixes()
Returns all registered namespace prefixes.
|
void |
register(String prefix,
String uri)
|
@Nonnull public static Namespace.Registry getInstance()
public Iterable<String> getPrefixes()
public Namespace getFromPrefix(String prefix)
Namespace
identified by the given prefix
, or null
if no
namespace is registered with this prefix
.prefix
- the prefix of the desired namespaceNamespace
identified by the given prefix
, or null
if no namespace is
registered with this prefix
public Namespace getFromUri(String uri)
Namespace
identified by the given uri
, or null
if no
namespace is registered with this uri
.uri
- the URI of the desired namespaceNamespace
identified by the given uri
, or null
if no namespace is
registered with this uri
.public void register(String prefix, String uri)
prefix
- the prefix of the new namespaceuri
- the URI associated with the prefixpublic void clean()
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.