public class ComponentModel extends java.lang.Object implements IComponentHolder
| Constructor and Description |
|---|
ComponentModel(java.lang.String modelName,
Workset aWorkset)
Initialize the new instance with a name and a workset.
|
ComponentModel(Workset aWorkset)
Initialize the new instance with a workset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(SoftwareComponent component)
Add the given component
|
protected void |
clearPackageAssignmentOfAllComponents() |
protected CollectionUtil |
coll() |
SoftwareComponent[] |
getComponents()
Returns all containers that are hold by this object
|
java.lang.String |
getDescription() |
protected java.util.List<SoftwareComponent> |
getIncludedComponents() |
java.lang.String |
getName() |
IComponentHolder |
getParentComponentHolder()
Returns the parent holder that contains this object.
|
Workset |
getWorkset() |
java.util.List<ClassPackage> |
initializePackages()
Scans the given workset for all packages that match a pattern of one
of the components in the component model.
|
boolean |
processSoftwareComponents(java.util.Collection<SoftwareComponent> collection,
ISoftwareComponentProcessor processor)
Calls the given processor for each contained component object and
adds all component objects that the processor wants
to the given collection.
|
void |
removeComponent(SoftwareComponent component)
Remove the given component
|
void |
setDescription(java.lang.String newValue) |
protected void |
setIncludedComponents(java.util.List<SoftwareComponent> newValue) |
protected void |
setName(java.lang.String newValue) |
protected void |
setWorkset(Workset newValue) |
public ComponentModel(Workset aWorkset)
public ComponentModel(java.lang.String modelName,
Workset aWorkset)
public java.lang.String getName()
protected void setName(java.lang.String newValue)
public java.lang.String getDescription()
public void setDescription(java.lang.String newValue)
protected java.util.List<SoftwareComponent> getIncludedComponents()
protected void setIncludedComponents(java.util.List<SoftwareComponent> newValue)
public Workset getWorkset()
protected void setWorkset(Workset newValue)
public SoftwareComponent[] getComponents()
IComponentHoldergetComponents in interface IComponentHolderpublic IComponentHolder getParentComponentHolder()
IComponentHoldergetParentComponentHolder in interface IComponentHolderpublic void addComponent(SoftwareComponent component)
IComponentHolderaddComponent in interface IComponentHolderpublic void removeComponent(SoftwareComponent component)
removeComponent in interface IComponentHolderpublic boolean processSoftwareComponents(java.util.Collection<SoftwareComponent> collection, ISoftwareComponentProcessor processor)
collection - The collection to which the matching objects will be added (might be null)processor - The processor that decides whether or not an object must be added (must not be null)public java.util.List<ClassPackage> initializePackages()
protected void clearPackageAssignmentOfAllComponents()
protected CollectionUtil coll()