protected static final class AbstractXMLSerializer.NamespaceStack extends Object
| Constructor and Description |
|---|
NamespaceStack(NamespaceContext aNamespaceCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespaceMapping(String sPrefix,
String sNamespaceURI)
Add a new prefix-namespace URI mapping at the current stack level
|
String |
getAttributeNamespacePrefixToUse(String sNamespaceURI,
String sName,
String sValue,
Map<QName,String> aAttrMap) |
String |
getElementNamespacePrefixToUse(String sNamespaceURI,
boolean bIsRootElement,
Map<QName,String> aAttrMap) |
void |
pop()
End the current namespace level.
|
void |
push()
Start a new namespace level.
|
int |
size() |
public NamespaceStack(@Nonnull NamespaceContext aNamespaceCtx)
public void push()
public void addNamespaceMapping(@Nullable String sPrefix, @Nonnull @Nonempty String sNamespaceURI)
sPrefix - Prefix to use. May be null.sNamespaceURI - Namespace URI to use. May neither be null nor empty.public void pop()
@Nonnegative public int size()
@Nullable public String getElementNamespacePrefixToUse(@Nonnull String sNamespaceURI, boolean bIsRootElement, @Nonnull Map<QName,String> aAttrMap)
Copyright © 2014–2023 Philip Helger. All rights reserved.