org.castor.xmlctf.xmldiff.xml.nodes

Class Namespace


public class Namespace
extends java.lang.Object

A class representing a Namespace for an Element. Objects of this type are not part of the XML node tree.
Version:
$Revision: 0000 $ $Date: 2007-01-11 00:00:00 -0600 (Thu, 11 Jan 2007) $
Author:
Edward Kuns
Since:
Castor 1.1

Constructor Summary

Namespace(String prefix, String namespaceURI)
Creates a new Namespace object for an XML Element.

Method Summary

String
getNamespaceUri()
Returns the string value of the namespace.
String
getPrefix()
Returns the prefix of this namespace.

Constructor Details

Namespace

public Namespace(String prefix,
                 String namespaceURI)
Creates a new Namespace object for an XML Element.
Parameters:
prefix - the prefix of this namespace binding. (May be null.)
namespaceURI - the namespace URI mapped to this prefix. (May be null.)

Method Details

getNamespaceUri

public String getNamespaceUri()
Returns the string value of the namespace.
Returns:
The string value of the namespace.

getPrefix

public String getPrefix()
Returns the prefix of this namespace.
Returns:
The prefix of this namespace.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com