Package org.daisy.braille.utils.pef
Class PEFNamespaceContext
- java.lang.Object
-
- org.daisy.braille.utils.pef.PEFNamespaceContext
-
- All Implemented Interfaces:
NamespaceContext
public class PEFNamespaceContext extends Object implements NamespaceContext
Provides a NamespaceContext implementation for PEF 1.0. It includes namespace prefix mapping for namespaces in PEF 1.0, namely:- http://www.daisy.org/ns/2008/pef
- http://purl.org/dc/elements/1.1/
-
-
Constructor Summary
Constructors Constructor Description PEFNamespaceContext()
Creates a new PEFNamespaceContext using the prefixes pef forhttp://www.daisy.org/ns/2008/pef
and dc forhttp://purl.org/dc/elements/1.1/
.PEFNamespaceContext(String pefPrefix, String dcPrefix)
Creates a new PEFNamespaceContext using the supplied prefixes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNamespaceURI(String prefix)
String
getPrefix(String namespaceURI)
Iterator<String>
getPrefixes(String namespaceURI)
-
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
-