public class NamespaceContext extends Object implements NamespaceContext
xpath.setNamespaceContext(
NamespaceContext.create()
.addNsUriPair(xmlSignatureNSPrefix, JBossSAMLURIConstants.XMLDSIG_NSURI.get())
);
Constructor and Description |
---|
NamespaceContext() |
NamespaceContext(String prefix,
String uri) |
Modifier and Type | Method and Description |
---|---|
NamespaceContext |
addNsUriPair(String ns,
String uri) |
static NamespaceContext |
create()
Create new NamespaceContext for use.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator<String> |
getPrefixes(String namespaceURI) |
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
public NamespaceContext addNsUriPair(String ns, String uri)
public static NamespaceContext create()
Copyright © 2017 JBoss by Red Hat. All rights reserved.