net.dpml.library.info
Class InfoDirective

java.lang.Object
  extended by net.dpml.lang.AbstractDirective
      extended by net.dpml.library.info.InfoDirective
All Implemented Interfaces:
Serializable, Info

public final class InfoDirective
extends AbstractDirective
implements Info

Info block descriptor.

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

Constructor Summary
InfoDirective(String title, String description)
          Creation of a new info directive.
 
Method Summary
 boolean equals(Object other)
          Compare this object with another for equality.
 String getDescription()
          Return the resource description.
 String getTitle()
          Return the resource title.
 int hashCode()
          Compute the hash value.
 boolean isNull()
          Return the null status of the info block.
 
Methods inherited from class net.dpml.lang.AbstractDirective
equals, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoDirective

public InfoDirective(String title,
                     String description)
Creation of a new info directive.

Parameters:
title - the title
description - the description
Method Detail

getTitle

public String getTitle()
Return the resource title.

Specified by:
getTitle in interface Info
Returns:
the title

getDescription

public String getDescription()
Return the resource description.

Specified by:
getDescription in interface Info
Returns:
the description

isNull

public boolean isNull()
Return the null status of the info block.

Returns:
the null status

equals

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

Overrides:
equals in class AbstractDirective
Parameters:
other - the other object
Returns:
true if equal

hashCode

public int hashCode()
Compute the hash value.

Overrides:
hashCode in class AbstractDirective
Returns:
the hashcode value