org.apache.jackrabbit.core
Class ItemId

java.lang.Object
  extended byorg.apache.jackrabbit.core.ItemId
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NodeId, PropertyId

public abstract class ItemId
extends Object
implements Serializable

ItemId serves as the base class for the concrete classes PropertyId and NodeId who uniquely identify nodes and properties in a workspace.

See Also:
Serialized Form

Field Summary
protected  int hash
          Memorized hash code.
 
Constructor Summary
protected ItemId()
          Creates an empty item ID instance.
 
Method Summary
abstract  boolean denotesNode()
          Returns true if this id denotes a Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash

protected int hash
Memorized hash code.

Constructor Detail

ItemId

protected ItemId()
Creates an empty item ID instance.

Method Detail

denotesNode

public abstract boolean denotesNode()
Returns true if this id denotes a Node.

Returns:
true if this id denotes a Node, false if it denotes a Property
See Also:
PropertyId, NodeId


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.