net.dpml.library.info
Class TypeDirective

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

public class TypeDirective
extends DataDirective
implements Type

The ModuleDirective class describes a module data-structure.

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

Constructor Summary
TypeDirective(Element element, String id, Version version)
          Creation of a new type directive.
TypeDirective(String name)
          Creation of a new type directive.
TypeDirective(String name, Version version)
          Creation of a new type directive.
TypeDirective(String id, Version version, Properties properties)
          Creation of a new generic type directive.
 
Method Summary
 boolean equals(Object other)
          Compare this object with another for equality.
 String getID()
          Return the type name.
 Version getVersion()
          Return the alias version.
 int hashCode()
          Compute the hash value.
 String toString()
          Return a string representation of the type.
 
Methods inherited from class net.dpml.library.info.DataDirective
getElement
 
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, wait, wait, wait
 
Methods inherited from interface net.dpml.library.Data
getElement
 

Constructor Detail

TypeDirective

public TypeDirective(String name)
Creation of a new type directive.

Parameters:
name - the name

TypeDirective

public TypeDirective(String name,
                     Version version)
Creation of a new type directive.

Parameters:
name - the name
version - alias version

TypeDirective

public TypeDirective(Element element,
                     String id,
                     Version version)
Creation of a new type directive.

Parameters:
element - DOM element defining the type
id - the type id
version - alias version

TypeDirective

public TypeDirective(String id,
                     Version version,
                     Properties properties)
Creation of a new generic type directive.

Parameters:
id - the type id
version - alias version
properties - supplimentary properties
Method Detail

getID

public String getID()
Return the type name.

Specified by:
getID in interface Type
Returns:
the name

getVersion

public Version getVersion()
Return the alias version.

Specified by:
getVersion in interface Type
Returns:
the alias version

equals

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

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

hashCode

public int hashCode()
Compute the hash value.

Overrides:
hashCode in class DataDirective
Returns:
the hascode value

toString

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

Overrides:
toString in class Object
Returns:
the string value