org.xbis
Class BasicNamespace

java.lang.Object
  extended byorg.xbis.BasicNamespace
Direct Known Subclasses:
XBISWriter.OutputNamespace

public class BasicNamespace
extends java.lang.Object

Basic namespace information. It holds the pair consisting of mapped prefix and namespace URI, which together make up a namespace reference.

Version:
0.8
Author:
Dennis M. Sosnoski

Constructor Summary
BasicNamespace(java.lang.String prefix, java.lang.String uri)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Check equality with another object.
 java.lang.String getPrefix()
          Get namespace prefix.
 java.lang.String getUri()
          Get namespace URI.
 int hashCode()
          Compute hash code for object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicNamespace

public BasicNamespace(java.lang.String prefix,
                      java.lang.String uri)
Constructor.

Parameters:
prefix - namespace prefix
uri - namespace URI
Method Detail

getPrefix

public java.lang.String getPrefix()
Get namespace prefix.

Returns:
namespace prefix

getUri

public java.lang.String getUri()
Get namespace URI.

Returns:
namespace URI

hashCode

public int hashCode()
Compute hash code for object. This uses the combination of hashes from the component values.

Returns:
hash code

equals

public boolean equals(java.lang.Object obj)
Check equality with another object. This tests type and component equality.

Returns:
true if equal, false if not


Company Web Site

XML Binary Information Set Home