protected static final class AbstractXMLSerializer.NamespaceLevel extends Object
| Constructor and Description |
|---|
NamespaceLevel()
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPrefixNamespaceMapping(String sPrefix,
String sNamespaceURI) |
String |
getDefaultNamespaceURI() |
int |
getNamespaceCount() |
String |
getNamespaceURIOfPrefix(String sPrefix)
Get the URL matching a given namespace prefix in this level.
|
String |
getPrefixOfNamespaceURI(String sNamespaceURI) |
boolean |
hasAnyNamespace() |
String |
toString() |
@Nullable public String getNamespaceURIOfPrefix(@Nullable String sPrefix)
sPrefix - The prefix to be searched. If it is null the default
namespace URL is returned.null if the namespace mapping is not used or the URL
otherwise.public void addPrefixNamespaceMapping(@Nullable String sPrefix, @Nonnull String sNamespaceURI)
@Nullable public String getPrefixOfNamespaceURI(@Nonnull String sNamespaceURI)
@Nonnegative public int getNamespaceCount()
public boolean hasAnyNamespace()
Copyright © 2014–2020 Philip Helger. All rights reserved.