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
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.