|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdtaus.core.container.ModelObject
org.jdtaus.core.container.Dependency
public class Dependency
Dependency meta-data.
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 Summary | |
|---|---|
Dependency()
|
|
| 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 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. |
| 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 |
|---|
public Dependency()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
true if this object is the same as o;
false otherwise.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()
hashCode in class Objectpublic 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.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||