net.dpml.state
Class DefaultInterface

java.lang.Object
  extended by net.dpml.state.DefaultInterface
All Implemented Interfaces:
Serializable, Action, Interface

public class DefaultInterface
extends Object
implements Interface, Serializable

Default implementation of an operation.

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

Constructor Summary
DefaultInterface(String classname)
          Creation of a new interface declaration.
 
Method Summary
 boolean equals(Object other)
          Compare this object to another for equality.
 String getClassname()
          Return the interface classname.
 String getName()
          Overriden method returning the interface classname.
 int hashCode()
          Compute the hashcode for this instance.
 String toString()
          Return a string representation of the instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultInterface

public DefaultInterface(String classname)
                 throws NullPointerException
Creation of a new interface declaration.

Parameters:
classname - the overriding method name
Throws:
NullPointerException - if the operation name is null
Method Detail

getName

public String getName()
Overriden method returning the interface classname.

Specified by:
getName in interface Action
Returns:
the name (interface classname)
See Also:
getClassname()

getClassname

public String getClassname()
Return the interface classname.

Specified by:
getClassname in interface Interface
Returns:
the classname

toString

public String toString()
Return a string representation of the instance.

Overrides:
toString in class Object
Returns:
the string value

equals

public boolean equals(Object other)
Compare this object to another for equality.

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if the object is equal to this object

hashCode

public int hashCode()
Compute the hashcode for this instance.

Overrides:
hashCode in class Object
Returns:
the hashcode value