net.sf.fikin.ant
Class XPathTask.ListOfNS

java.lang.Object
  extended by net.sf.fikin.ant.XPathTask.ListOfNS
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext
Enclosing class:
XPathTask

public class XPathTask.ListOfNS
extends java.lang.Object
implements javax.xml.namespace.NamespaceContext

Namespace context handler used by XPath to resolve custom namespaces

created on Jan 5, 2007

Since:
Version:
$Revision: 1.7 $
Author:
fiykov

Constructor Summary
XPathTask.ListOfNS()
           
 
Method Summary
 void addNs(Namespace ns)
          add new namespace to the list
 java.lang.String getNamespaceURI(java.lang.String prefix)
          resolve uri for that namespace
 java.lang.String getPrefix(java.lang.String namespaceURI)
          not supported
 java.util.Iterator getPrefixes(java.lang.String namespaceURI)
          not supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathTask.ListOfNS

public XPathTask.ListOfNS()
Method Detail

addNs

public void addNs(Namespace ns)
add new namespace to the list

Parameters:
ns - to add

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)
resolve uri for that namespace

return XMLConstants.XML_NS_URI is "xml" or not found in the list

Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext

getPrefix

public java.lang.String getPrefix(java.lang.String namespaceURI)
not supported

Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext

getPrefixes

public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
not supported

Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.