Package de.christofreichardt.diagnosis
Class TracerConfigNamespaceContextImpl
java.lang.Object
de.christofreichardt.diagnosis.TracerConfigNamespaceContextImpl
- All Implemented Interfaces:
NamespaceContext
Since the TracerFactory uses XPath to access the XML configuration involving namespaces an implementation of the
NamespaceContext interface is necessary. The implementation is simplified as only the namespace "http://www.christofreichardt.de/java/tracer"
and the prefix "dns" will be considered.
- Author:
- Christof Reichardt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSimplified implementation of an iterator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI(String prefix) Returns the fixed namespace URI for the prefix "dns".Returns the prefix for the fixed namespace "http://www.christofreichardt.de/java/tracer".getPrefixes(String namespaceURI) Returns a special iterator implementation.
-
Constructor Details
-
TracerConfigNamespaceContextImpl
public TracerConfigNamespaceContextImpl()default constructor.
-
-
Method Details
-
getNamespaceURI
Returns the fixed namespace URI for the prefix "dns". Other prefixes will cause an IllegalArgumentException.- Specified by:
getNamespaceURIin interfaceNamespaceContext- Parameters:
prefix- the namespace prefix- Returns:
- the URI "http://www.christofreichardt.de/java/tracer"
-
getPrefix
Returns the prefix for the fixed namespace "http://www.christofreichardt.de/java/tracer". Other namespaces will cause an IllegalArgumentException.- Specified by:
getPrefixin interfaceNamespaceContext- Parameters:
namespaceURI- the namespace URI- Returns:
- the prefix "dns"
-
getPrefixes
Returns a special iterator implementation.- Specified by:
getPrefixesin interfaceNamespaceContext- Parameters:
namespaceURI- the namespace URI- Returns:
- an iterator
-