org.codehaus.xfire.util
Class NamespaceHelper

java.lang.Object
  extended by org.codehaus.xfire.util.NamespaceHelper

public class NamespaceHelper
extends java.lang.Object

DOM4J Namespace functions.

Author:
Dan Diephouse

Constructor Summary
NamespaceHelper()
           
 
Method Summary
static org.dom4j.Namespace createNamespace(java.lang.String prefix, java.lang.String nsUri)
           
static org.dom4j.Namespace getNamespace(org.dom4j.Element el, java.lang.String nsUri)
          Create a unique namespace uri/prefix combination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceHelper

public NamespaceHelper()
Method Detail

createNamespace

public static org.dom4j.Namespace createNamespace(java.lang.String prefix,
                                                  java.lang.String nsUri)
Parameters:
nsUri -
Returns:
The namespace with the specified URI. If one doesn't exist, one is created.

getNamespace

public static org.dom4j.Namespace getNamespace(org.dom4j.Element el,
                                               java.lang.String nsUri)
Create a unique namespace uri/prefix combination.

Parameters:
nsUri -
Returns:
The namespace with the specified URI. If one doesn't exist, one is created.


Copyright © 2004 Codehaus. All Rights Reserved.