sk.uniba.euromath.document
Class NamespaceManager.NodeCount

java.lang.Object
  extended by sk.uniba.euromath.document.NamespaceManager.NodeCount
Enclosing class:
NamespaceManager

public static final class NamespaceManager.NodeCount
extends Object

Class holding elements and attributes count. Mutable.

Author:
Martin Vysny

Field Summary
 int attributes
          Count of Attribute nodes.
 int elements
          Count of Element nodes.
 
Constructor Summary
NamespaceManager.NodeCount()
          Constructs zero counter.
NamespaceManager.NodeCount(NamespaceManager.NodeCount other)
          Copy-constructor.
 
Method Summary
 boolean equals(Object obj)
           
 int getCount()
          Returns count of all nodes.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

elements

public int elements
Count of Element nodes.


attributes

public int attributes
Count of Attribute nodes.

Constructor Detail

NamespaceManager.NodeCount

public NamespaceManager.NodeCount()
Constructs zero counter.


NamespaceManager.NodeCount

public NamespaceManager.NodeCount(NamespaceManager.NodeCount other)
Copy-constructor.

Parameters:
other - copies the object.
Method Detail

getCount

public int getCount()
Returns count of all nodes.

Returns:
sum of elements and attributes.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2006 null. All Rights Reserved.