net.dpml.library.info
Class DataDirective

java.lang.Object
  extended by net.dpml.library.info.AbstractDirective
      extended by net.dpml.library.info.DataDirective
All Implemented Interfaces:
Serializable, Data
Direct Known Subclasses:
TypeDirective

public class DataDirective
extends AbstractDirective
implements Data

Base class for a data directives.

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

Constructor Summary
DataDirective(Element element)
          Creation of a new data directive using a DOM element as the datastructure definition.
DataDirective(Properties properties)
          Creation of a new data directive using a supplied properties argument.
 
Method Summary
 boolean equals(Object other)
          Compare this object with another for equality.
 Element getElement()
          Return the datatype element.
 int hashCode()
          Compute the hash value.
 
Methods inherited from class net.dpml.library.info.AbstractDirective
equals, getProperties, getProperty, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDirective

public DataDirective(Element element)
Creation of a new data directive using a DOM element as the datastructure definition.

Parameters:
element - the DOM element

DataDirective

public DataDirective(Properties properties)
Creation of a new data directive using a supplied properties argument.

Parameters:
properties - associated properties
Method Detail

getElement

public Element getElement()
Return the datatype element.

Specified by:
getElement in interface Data
Returns:
the DOM element

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 hascode value