org.jdtaus.core.container
Class Dependencies

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

public class Dependencies
extends Object
implements Cloneable, Serializable

Collection of dependencies.

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

Constructor Summary
Dependencies()
           
 
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.
 Dependency[] getDependencies()
          Gets all dependencies of the collection.
 Dependency getDependency(int index)
          Gets a dependency for an index.
 Dependency getDependency(String name)
          Gets a dependency for a name.
 int hashCode()
          Returns a hash code value for this object.
 void setDependencies(Dependency[] value)
          Setter for property .
 int size()
          Gets the number of dependencies 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

Dependencies

public Dependencies()
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.

getDependencies

public Dependency[] getDependencies()
Gets all dependencies of the collection.

Returns:
all dependencies of the collection.

getDependency

public final Dependency getDependency(int index)
Gets a dependency for an index.

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

getDependency

public Dependency getDependency(String name)
Gets a dependency for a name.

Parameters:
name - the name of the dependency to return.
Returns:
a reference to the dependency named .
Throws:
NullPointerException - if is .
MissingDependencyException - if no dependency matching exists in the collection.

hashCode

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

Returns:
a hash code value for this object.

setDependencies

public void setDependencies(Dependency[] value)
Setter for property .

Parameters:
value - the new dependencies for the collection.
Throws:
DuplicateDependencyException - if contains duplicate dependencies.

size

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

Returns:
the number of dependencies 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.