Package org.daisy.braille.pef
Class PEFNamespaceContext
java.lang.Object
org.daisy.braille.pef.PEFNamespaceContext
- All Implemented Interfaces:
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/
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
ConstructorDescriptionCreates a new PEFNamespaceContext using the prefixes pef for http://www.daisy.org/ns/2008/pef and dc for http://purl.org/dc/elements/1.1/PEFNamespaceContext
(String pefPrefix, String dcPrefix) Creates a new PEFNamespaceContext using the supplied prefixes -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI
(String prefix) getPrefixes
(String namespaceURI)
-
Constructor Details
-
PEFNamespaceContext
public PEFNamespaceContext()Creates a new PEFNamespaceContext using the prefixes pef for http://www.daisy.org/ns/2008/pef and dc for http://purl.org/dc/elements/1.1/ -
PEFNamespaceContext
Creates a new PEFNamespaceContext using the supplied prefixes- Parameters:
pefPrefix
- the prefix to use for http://www.daisy.org/ns/2008/pefdcPrefix
- the prefix to use for http://purl.org/dc/elements/1.1/
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-