Hilbert II - Version 0.02.01

org.qedeq.kernel.bo.module
Class SpecificationBo

java.lang.Object
  extended byorg.qedeq.kernel.bo.module.SpecificationBo
All Implemented Interfaces:
Specification

public final class SpecificationBo
extends Object
implements Specification

Describes a specification of a module, that means its name, versions and possible "physical" locations. The combination of getName() and getRuleVersion() defines the file name of that module.

Version:
$Revision: 1.3 $

Constructor Summary
SpecificationBo()
          Constructs an empty module specification.
SpecificationBo(String name, String ruleVersion, LocationList locations)
          Constructs a module specification.
 
Method Summary
 boolean equals(Object obj)
           
 LocationList getLocationList()
          Get list of locations for the module.
 String getName()
          Get module name.
 String getRuleVersion()
          Get rule version, that is needed to verify the module.
 int hashCode()
           
 void setLocationList(LocationList locations)
          Set list of locations for the module.
 void setName(String name)
          Set module name.
 void setRuleVersion(String ruleVersion)
          Set rule version, that is needed to verify the module.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpecificationBo

public SpecificationBo(String name,
                       String ruleVersion,
                       LocationList locations)
Constructs a module specification. The combination of name and ruleVersion defines the file name of that module.

Parameters:
name - Module name.
ruleVersion - Rule version. This version is at least needed to verify that module.
locations - List of locations for that module.

SpecificationBo

public SpecificationBo()
Constructs an empty module specification.

Method Detail

setName

public final void setName(String name)
Description copied from interface: Specification
Set module name.

Specified by:
setName in interface Specification
Parameters:
name - Module name.

getName

public final String getName()
Description copied from interface: Specification
Get module name.

Specified by:
getName in interface Specification
Returns:
Module name.

setRuleVersion

public final void setRuleVersion(String ruleVersion)
Description copied from interface: Specification
Set rule version, that is needed to verify the module.

Specified by:
setRuleVersion in interface Specification
Parameters:
ruleVersion - Rule version.

getRuleVersion

public final String getRuleVersion()
Description copied from interface: Specification
Get rule version, that is needed to verify the module.

Specified by:
getRuleVersion in interface Specification
Returns:
Rule version.

setLocationList

public final void setLocationList(LocationList locations)
Description copied from interface: Specification
Set list of locations for the module.

Specified by:
setLocationList in interface Specification
Parameters:
locations - List of locations for that module.

getLocationList

public final LocationList getLocationList()
Description copied from interface: Specification
Get list of locations for the module.

Specified by:
getLocationList in interface Specification
Returns:
List of locations for that module.

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

toString

public String toString()

Hilbert II - Version 0.02.01

©left GNU General Public Licence
All Rights Reserved.