net.dpml.metro.data
Class AbstractDirective

java.lang.Object
  extended by net.dpml.metro.data.AbstractDirective
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CategoryDirective, ContextDirective, FeatureDirective, LookupDirective, NullDirective

public abstract class AbstractDirective
extends Object
implements Serializable

Abstract base class for directives.

Version:
1.0.4
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
AbstractDirective()
           
 
Method Summary
 boolean equals(Object other)
          Test if the supplied object is equal to this object.
 URI getPartHandlerURI()
          Return the part handler uri.
 int hashCode()
          Return the hashcode for the instance.
protected static URI setupURI(String spec)
          Static utility to create the part handler uri.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDirective

public AbstractDirective()
Method Detail

hashCode

public int hashCode()
Return the hashcode for the instance.

Overrides:
hashCode in class Object
Returns:
the instance hashcode

equals

public boolean equals(Object other)
Test if the supplied object is equal to this object.

Overrides:
equals in class Object
Parameters:
other - the object to compare with this instance
Returns:
TRUE if the supplied object is equal to this object

getPartHandlerURI

public URI getPartHandlerURI()
Return the part handler uri.

Returns:
the uri of the part handler

setupURI

protected static URI setupURI(String spec)
Static utility to create the part handler uri.

Parameters:
spec - the part handler uri string
Returns:
the constant part handler uri