org.iges.anagram
Class Handle

java.lang.Object
  |
  +--org.iges.anagram.Handle
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataHandle, DirHandle

public abstract class Handle
extends java.lang.Object
implements java.io.Serializable

The base class for all Catalog entries.

See Also:
Serialized Form

Field Summary
protected  java.lang.String completeName
           
protected  ExclusiveLock synch
           
 
Constructor Summary
protected Handle(java.lang.String completeName)
           
 
Method Summary
 java.lang.String getCompleteName()
          Returns the full online name of this entry
 java.lang.String getName()
          Returns the portion of the entry's complete name that follows the final '/'.
 ExclusiveLock getSynch()
          Allows multiple threads to synchronize operations on this handle.
 java.lang.String toString()
           
protected  void validateName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

completeName

protected java.lang.String completeName

synch

protected transient ExclusiveLock synch
Constructor Detail

Handle

protected Handle(java.lang.String completeName)
          throws AnagramException
Method Detail

getName

public java.lang.String getName()
Returns the portion of the entry's complete name that follows the final '/'.


getCompleteName

public java.lang.String getCompleteName()
Returns the full online name of this entry


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSynch

public ExclusiveLock getSynch()
Allows multiple threads to synchronize operations on this handle. Before performing operations that depend on the state of the handle, a non-exclusive lock should always be obtained. Before performing operations that alter the state of a handle, an exclusive lock should always be obtained. Locks that have been obtained must always be released (even if the synchronized operation throws an exception), or other requests may become deadlocked.


validateName

protected void validateName(java.lang.String name)
                     throws AnagramException
AnagramException