public class XCardNamespaceContext extends Object implements NamespaceContext
XPath.setNamespaceContext(NamespaceContext)
Constructor and Description |
---|
XCardNamespaceContext(VCardVersion version,
String prefix) |
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceURI(String prefix) |
String |
getPrefix()
Gets the prefix to use in xpath expressions.
|
String |
getPrefix(String ns) |
Iterator<String> |
getPrefixes(String ns) |
public XCardNamespaceContext(VCardVersion version, String prefix)
version
- the vCard version to useprefix
- the prefix to usepublic String getPrefix()
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String ns)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String ns)
getPrefixes
in interface NamespaceContext
Copyright © 2012–2023 Michael Angstadt. All rights reserved.