org.jdtaus.core.container
Class Module

java.lang.Object
  extended by org.jdtaus.core.container.ModelObject
      extended by org.jdtaus.core.container.Module
All Implemented Interfaces:
Serializable, Cloneable

public class Module
extends ModelObject
implements Cloneable, Serializable

Module meta-data.

A module consists of the properties name, description and version. Property name holds the name of the module uniquely identifying the module in a collection of modules. Property description holds a textual description, property version a textual version of the module. A module defines specifications, implementations and properties.

Version:
$Id: Module.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
Module()
           
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 boolean equals(Object o)
          Indicates whether some other object is equal to this one by comparing properties name and version.
 Implementations getImplementations()
          Gets the implementations of the module.
 Messages getMessages()
          Gets the messages of the module.
 String getName()
          Gets the name of the module.
 Properties getProperties()
          Gets the properties of the module.
 Specifications getSpecifications()
          Gets the specifications of the module.
 String getVersion()
          Gets the version of the module.
 int hashCode()
          Returns a hash code value for this object.
 void setImplementations(Implementations value)
          Setter for property implementations.
 void setMessages(Messages value)
          Setter for property messages.
 void setName(String value)
          Setter for property name.
 void setProperties(Properties value)
          Setter for property properties.
 void setSpecifications(Specifications value)
          Setter for property specifications.
 void setVersion(String value)
          Setter for property version.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.jdtaus.core.container.ModelObject
getDocumentation, getModelVersion, setDocumentation, setModelVersion
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Module

public Module()
Method Detail

clone

public Object clone()
Creates and returns a copy of this object. This method performs a "shallow copy" of this object, not a "deep copy" operation.

Overrides:
clone in class Object
Returns:
a clone of this instance.

equals

public final boolean equals(Object o)
Indicates whether some other object is equal to this one by comparing properties name and version.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as o; false otherwise.

getImplementations

public Implementations getImplementations()
Gets the implementations of the module.

Returns:
implementations of the module.

getMessages

public Messages getMessages()
Gets the messages of the module.

Returns:
the messages of the module.

getName

public String getName()
Gets the name of the module.

Returns:
the unique name of the module.

getProperties

public Properties getProperties()
Gets the properties of the module.

Returns:
the properties of the module.

getSpecifications

public Specifications getSpecifications()
Gets the specifications of the module.

Returns:
the specifications of the module.

getVersion

public String getVersion()
Gets the version of the module.

Returns:
the version of the module or null.

hashCode

public final int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

setImplementations

public void setImplementations(Implementations value)
Setter for property implementations.

Parameters:
value - the new implementations of the module.

setMessages

public void setMessages(Messages value)
Setter for property messages.

Parameters:
value - new messages of the module.

setName

public void setName(String value)
Setter for property name.

Parameters:
value - the new name of the module.

setProperties

public void setProperties(Properties value)
Setter for property properties.

Parameters:
value - the new properties of the module.

setSpecifications

public void setSpecifications(Specifications value)
Setter for property specifications.

Parameters:
value - the new specifications of the module.

setVersion

public void setVersion(String value)
Setter for property version.

Parameters:
value - the new version of the module.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.