Package org.hl7.fhir.utilities.xhtml
Class XhtmlParser.NamespaceNormalizationMap
java.lang.Object
org.hl7.fhir.utilities.xhtml.XhtmlParser.NamespaceNormalizationMap
- Enclosing class:
- XhtmlParser
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceForPrefix(String prefix) booleanvoidputNamespacePrefix(String prefix, String namespace) voidsetDefaultNamespace(String defaultNamespace) voidsetOriginalNamespacePrefix(String originalNamespacePrefix) Keeps track of the original namespace this element had before it was normalized This way, child elements using that prefix will be able recognize that they should use the default namespace.
-
Constructor Details
-
NamespaceNormalizationMap
-
-
Method Details
-
setDefaultNamespace
-
setOriginalNamespacePrefix
Keeps track of the original namespace this element had before it was normalized This way, child elements using that prefix will be able recognize that they should use the default namespace. <namespaceA:parentElement xmlns:namespaceA="http://www.somewhere.org/namespaceA"> <namespaceA: childElement/> </namespaceA:parentElement> parentElement's namespaceA would become the default namespace. When normalizing childElement originalNamespacePrefix would be namespaceA, so we would know that childElement should use the default namespace.- Parameters:
originalNamespacePrefix-
-
putNamespacePrefix
-
getDefaultNamespace
-
hasDefaultNamespace
-
getNamespaceForPrefix
-
getPrefixNamespaceEntrySet
-