org.dom4j.tree

Class DefaultNamespace

public class DefaultNamespace extends Namespace

DefaultNamespace implements a doubly linked node which supports the parent relationship and is mutable. It is useful when returning results from XPath expressions.

Version: $Revision: 1.16 $

Author: James Strachan

Constructor Summary
DefaultNamespace(String prefix, String uri)
DOCUMENT ME!
DefaultNamespace(Element parent, String prefix, String uri)
DOCUMENT ME!
Method Summary
protected intcreateHashCode()
DOCUMENT ME!
booleanequals(Object object)
Implements an identity based comparsion using the parent element as well as the prefix and URI
ElementgetParent()
inthashCode()
booleanisReadOnly()
voidsetParent(Element parent)
booleansupportsParent()

Constructor Detail

DefaultNamespace

public DefaultNamespace(String prefix, String uri)
DOCUMENT ME!

Parameters: prefix is the prefix for this namespace uri is the URI for this namespace

DefaultNamespace

public DefaultNamespace(Element parent, String prefix, String uri)
DOCUMENT ME!

Parameters: parent is the parent element prefix is the prefix for this namespace uri is the URI for this namespace

Method Detail

createHashCode

protected int createHashCode()
DOCUMENT ME!

Returns: the hash code based on the qualified name and the URI of the namespace and the hashCode() of the parent element.

equals

public boolean equals(Object object)
Implements an identity based comparsion using the parent element as well as the prefix and URI

Parameters: object DOCUMENT ME!

Returns: DOCUMENT ME!

getParent

public Element getParent()

hashCode

public int hashCode()

isReadOnly

public boolean isReadOnly()

setParent

public void setParent(Element parent)

supportsParent

public boolean supportsParent()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge