
public class Dependency extends ModelObject implements Cloneable, Serializable
A dependency consists of a name uniquely identifying the dependency in a
set of dependencies and pairs a specification with corresponding
implementations from a set of available implementations. Properties set with
a dependency overwrite properties of the dependency's specification. The
bound flag indicates if the instance of the dependency is bound to
the declaring implementation.
| Constructor and Description |
|---|
Dependency()
Creates a new
Dependency instance. |
| Modifier and Type | Method and Description |
|---|---|
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
the values of all properties.
|
Properties |
getDeclaredProperties()
Gets the declared properties of the dependency.
|
Implementation |
getImplementation()
Gets the implementation of the dependency.
|
String |
getName()
Gets the name of the dependency.
|
Properties |
getProperties()
Gets the properties of the dependency.
|
Specification |
getSpecification()
Gets the specification of the dependency.
|
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
isBound()
Gets the flag indicating if the dependency is bound to a requesting
implementation.
|
void |
setBound(boolean value)
Setter for property
bound. |
void |
setImplementation(Implementation value)
Setter for property
implementation. |
void |
setName(String value)
Setter for property
name. |
void |
setProperties(Properties value)
Setter for property
properties. |
void |
setSpecification(Specification value)
Setter for property
specification. |
String |
toString()
Returns a string representation of the object.
|
getDocumentation, getModelVersion, setDocumentation, setModelVersionpublic Dependency()
Dependency instance.public Object clone()
public boolean equals(Object o)
public Properties getDeclaredProperties()
public Implementation getImplementation()
null.public String getName()
public Properties getProperties()
The properties of a dependency are a merged set of the properties declared for the dependency's implementation overwritten by any properties declared for the dependency.
IllegalPropertyTypeException - for any property type collisions
during merging.PropertyOverwriteConstraintExceptionpublic Specification getSpecification()
public int hashCode()
public boolean isBound()
true if the dependency object is bound to the declaring
implementation; false if not.public void setBound(boolean value)
bound.value - true if the dependency object should be bound to the
declaring implementation; false if not.public void setImplementation(Implementation value)
implementation.value - the new implementation of the dependency.public void setName(String value)
name.value - the new name of the dependency.public void setProperties(Properties value)
properties.value - the new properties of the dependency.PropertyOverwriteConstraintExceptionpublic void setSpecification(Specification value)
specification.value - the new specification of the dependency.Copyright © 2005-2012 jDTAUS. All Rights Reserved.