ezvcard.io.xml
Class XCardNamespaceContext
java.lang.Object
ezvcard.io.xml.XCardNamespaceContext
- All Implemented Interfaces:
- NamespaceContext
public class XCardNamespaceContext
- extends Object
- implements NamespaceContext
Used for xCard XPath expressions.
- Author:
- Michael Angstadt
- See Also:
XPath.setNamespaceContext(NamespaceContext)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XCardNamespaceContext
public XCardNamespaceContext(VCardVersion version,
String prefix)
- Parameters:
version
- the vCard version to useprefix
- the prefix to use
getPrefix
public String getPrefix()
- Gets the prefix to use in xpath expressions.
- Returns:
- the xpath prefix
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
getPrefix
public String getPrefix(String ns)
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public Iterator<String> getPrefixes(String ns)
- Specified by:
getPrefixes
in interface NamespaceContext
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.