|
|||||||||
| 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.Modules
public class Modules
Collection of modules.
| Constructor Summary | |
|---|---|
Modules()
|
|
| 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. |
Implementation |
getImplementation(String identifier)
Gets an implementation for an identifier. |
Implementations |
getImplementations()
Gets a collection of all implementations of all modules held by the instance. |
Module |
getModule(int index)
Gets a module for an index. |
Module |
getModule(String name)
Gets a module for a name. |
Module[] |
getModules()
Gets the modules of the collection. |
Specification |
getSpecification(String identifier)
Gets a specification for an identifier. |
Specifications |
getSpecifications()
Gets a collection of all specifications of all modules. |
int |
hashCode()
Returns a hash code value for this object. |
void |
setModules(Module[] value)
Setter for property modules. |
int |
size()
Gets the number of modules held by the instance. |
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 Modules()
| 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 Implementation getImplementation(String identifier)
identifier - the identifier of the implementation to return.
identifier.
NullPointerException - if identifier is null.
MissingImplementationException - if no implementation matching
identifier exists.public Implementations getImplementations()
public final Module getModule(int index)
index - the index of the module to return.
index.
IndexOutOfBoundsException - if index is negativ,
greater than or equal to size().public Module getModule(String name)
name - the name of the module to return.
name.
NullPointerException - if name is null.
MissingModuleException - if no module matching name exists
in the collection.public Module[] getModules()
public Specification getSpecification(String identifier)
identifier - the identifier of the specification to return.
identifier.
NullPointerException - if identifier is null.
MissingSpecificationException - if no specification matching
identifier exists.public Specifications getSpecifications()
public int hashCode()
hashCode in class Objectpublic void setModules(Module[] value)
modules.
value - the new collection of modules.
DuplicateModuleException - if value contains duplicate
modules.
DuplicateSpecificationException - if value contains
duplicate specifications.
DuplicateImplementationException - if value contains
duplicate implementations.public final int size()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||