Class Namespace

java.lang.Object
org.castor.xmlctf.xmldiff.xml.nodes.Namespace

public class Namespace extends Object
A class representing a Namespace for an Element. Objects of this type are not part of the XML node tree.
Since:
Castor 1.1
Version:
$Revision: 0000 $ $Date: 2007-01-11 00:00:00 -0600 (Thu, 11 Jan 2007) $
Author:
Edward Kuns
  • 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

    • getPrefix

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

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