ezvcard.io.xml
Class XCardNamespaceContext

java.lang.Object
  extended by 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)

Constructor Summary
XCardNamespaceContext(VCardVersion version, String prefix)
           
 
Method Summary
 String getNamespaceURI(String prefix)
           
 String getPrefix()
          Gets the prefix to use in xpath expressions.
 String getPrefix(String ns)
           
 Iterator<String> getPrefixes(String ns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XCardNamespaceContext

public XCardNamespaceContext(VCardVersion version,
                             String prefix)
Parameters:
version - the vCard version to use
prefix - the prefix to use
Method Detail

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.