UTF-X, Unit Testing Framework - Xslt

utfx.framework
Class UTFXNamespaceContext

java.lang.Object
  extended by utfx.framework.UTFXNamespaceContext
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext

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

Handles namespace context for the UTF-X framework.

Copyright © 2004-2006 - UTF-X development team.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

$Source: /cvs/utf-x/framework/src/java/utfx/framework/UTFXNamespaceContext.java,v $

Version:
$Revision: 1.5 $ $Date: 2006/07/14 20:32:28 $ $Name: release_0_0_8_alpha $
Author:
Jacek Radajewski

Field Summary
private  java.util.HashMap<java.lang.String,java.lang.String> map
          prefix/namespace uri pair storage
static java.lang.String TDF_NS_URI
          NEW UTF-X TDF namespace URI
static java.lang.String UTFX_NS_URI
          OLD UTF-X namespace URI
static java.lang.String XSL_NS_URI
          XSL namespace URI
 
Constructor Summary
UTFXNamespaceContext()
          create and initilise a new NSContext instance
 
Method Summary
 java.lang.String getNamespaceURI(java.lang.String prefix)
           
 java.lang.String getPrefix(java.lang.String namespaceURI)
           
 java.util.Iterator getPrefixes(java.lang.String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSL_NS_URI

public static final java.lang.String XSL_NS_URI
XSL namespace URI

See Also:
Constant Field Values

UTFX_NS_URI

public static final java.lang.String UTFX_NS_URI
OLD UTF-X namespace URI

See Also:
Constant Field Values

TDF_NS_URI

public static final java.lang.String TDF_NS_URI
NEW UTF-X TDF namespace URI

See Also:
Constant Field Values

map

private java.util.HashMap<java.lang.String,java.lang.String> map
prefix/namespace uri pair storage

Constructor Detail

UTFXNamespaceContext

public UTFXNamespaceContext()
create and initilise a new NSContext instance

Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)
Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext
See Also:
NamespaceContext.getNamespaceURI(java.lang.String)

getPrefix

public java.lang.String getPrefix(java.lang.String namespaceURI)
Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext
See Also:
NamespaceContext.getPrefix(java.lang.String)

getPrefixes

public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext

UTF-X, Unit Testing Framework - Xslt