biweekly.io.xml
Class XCalNamespaceContext
java.lang.Object
biweekly.io.xml.XCalNamespaceContext
- All Implemented Interfaces:
- NamespaceContext
public class XCalNamespaceContext
- extends Object
- implements NamespaceContext
Used for xCal xpath expressions.
- Author:
- Michael Angstadt
- See Also:
XPath.setNamespaceContext(NamespaceContext)
Field Summary |
static String |
XCAL_NS
The XML namespace for xCal documents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XCAL_NS
public static final String XCAL_NS
- The XML namespace for xCal documents.
- See Also:
- Constant Field Values
XCalNamespaceContext
public XCalNamespaceContext(String prefix)
- Creates a new namespace context.
- Parameters:
prefix
- the prefix to use in xpath expressions
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 © 2013 Michael Angstadt. All Rights Reserved.