org.jdtaus.core.container
Class Specifications

java.lang.Object
  extended byorg.jdtaus.core.container.Specifications
All Implemented Interfaces:
Cloneable, Serializable

public class Specifications
extends Object
implements Cloneable, Serializable

Collection of specifications.

Version:
$Id: Specifications.java 2230 2007-03-26 01:37:48Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
Specifications()
           
 
Method Summary
 Object clone()
          Creates and returns a deep copy of this object.
 boolean equals(Object o)
          Indicates whether some other object is equal to this one by comparing the values of all properties.
 Specification getSpecification(int index)
          Gets a specification for an index.
 Specification getSpecification(String identifier)
          Gets a specification for an identifier.
 Specification[] getSpecifications()
          Gets the specifications of the collection.
 int hashCode()
          Returns a hash code value for this object.
 void setSpecifications(Specification[] value)
          Setter for property .
 int size()
          Gets the number of specifications held by the instance.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Specifications

public Specifications()
Method Detail

clone

public Object clone()
Creates and returns a deep copy of this object.

Returns:
a clone of this instance.

equals

public boolean equals(Object o)
Indicates whether some other object is equal to this one by comparing the values of all properties.

Parameters:
o - the reference object with which to compare.
Returns:
if this object is the same as ; otherwise.

getSpecification

public final Specification getSpecification(int index)
Gets a specification for an index.

Parameters:
index - the index of the specification to return.
Returns:
a reference to the specification at .
Throws:
IndexOutOfBoundsException - if is negativ, greater than or equal to .

getSpecification

public Specification getSpecification(String identifier)
Gets a specification for an identifier.

Parameters:
identifier - the identifier of the specification to return.
Returns:
a reference to the specification identified by .
Throws:
NullPointerException - if is .
MissingSpecificationException - if no specification matching exists in the collection.

getSpecifications

public Specification[] getSpecifications()
Gets the specifications of the collection.

Returns:
the specifications of the collection.

hashCode

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

Returns:
a hash code value for this object.

setSpecifications

public void setSpecifications(Specification[] value)
Setter for property .

Parameters:
value - the new specifications for the instance.
Throws:
DuplicateSpecificationException - if contains duplicate specifications.

size

public final int size()
Gets the number of specifications held by the instance.

Returns:
the number of specifications held by the instance.

toString

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

Returns:
a string representation of the object.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.