|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.EntitiesSet
public final class EntitiesSet
Simple class for building a set of first class entities in the repository. Designed mainly for the purpose of cloning and deleting entities.
Constructor Summary | |
---|---|
EntitiesSet()
|
|
EntitiesSet(Entity[] collection)
|
|
EntitiesSet(java.lang.Iterable<? extends VersionedEntity> collection)
|
Method Summary | |
---|---|
void |
add(Architecture entity)
Adds an entity to the set. |
void |
add(Aspect entity)
Adds an entity to the set. |
void |
add(AssemblyDescriptor entity)
Adds an entity to the set. |
void |
add(CodeBundle entity)
Adds an entity to the set. |
void |
add(DeploymentPlan entity)
Adds an entity to the set. |
void |
add(Frame entity)
Adds an entity to the set. |
void |
add(InterfaceType entity)
Adds an entity to the set. |
void |
add(MicroComponent entity)
Adds an entity to the set. |
void |
add(MicroInterfaceType entity)
Adds an entity to the set. |
void |
addArchitectures(java.lang.Iterable<Architecture> entities)
Adds entities to the set. |
void |
addAspects(java.lang.Iterable<Aspect> entities)
Adds entities to the set. |
void |
addAssemblyDescriptors(java.lang.Iterable<AssemblyDescriptor> entities)
Adds entities to the set. |
void |
addCodeBundles(java.lang.Iterable<CodeBundle> entities)
Adds entities to the set. |
void |
addDeploymentPlans(java.lang.Iterable<DeploymentPlan> entities)
Adds entities to the set. |
void |
addFrames(java.lang.Iterable<Frame> entities)
Adds entities to the set. |
void |
addInterfaceTypes(java.lang.Iterable<InterfaceType> entities)
Adds entities to the set. |
void |
addMicroComponents(java.lang.Iterable<MicroComponent> entities)
Adds entities to the set. |
void |
addMicroInterfaceTypes(java.lang.Iterable<MicroInterfaceType> entities)
Adds entities to the set. |
void |
addUnknown(VersionedEntity entity)
Adds an entity to the set. |
boolean |
contains(Architecture entity)
Is the entity in the set? |
boolean |
contains(Aspect entity)
Is the entity in the set? |
boolean |
contains(AssemblyDescriptor entity)
Is the entity in the set? |
boolean |
contains(CodeBundle entity)
Is the entity in the set? |
boolean |
contains(DeploymentPlan entity)
Is the entity in the set? |
boolean |
contains(Frame entity)
Is the entity in the set? |
boolean |
contains(InterfaceType entity)
Is the entity in the set? |
boolean |
contains(MicroComponent entity)
Is the entity in the set? |
boolean |
contains(MicroInterfaceType entity)
Is the entity in the set? |
boolean |
contains(VersionedEntity entity)
Is the entity in the set? |
java.util.List<VersionedEntity> |
getAll()
Returns list of entities stored in this set. |
java.util.List<Architecture> |
getArchitectures()
Returns list of architectures stored in this object. |
java.util.List<Aspect> |
getAspects()
Returns list of aspects stored in this object. |
java.util.List<AssemblyDescriptor> |
getAssemblyDescriptors()
Returns list of assembly descriptors stored in this object. |
java.util.List<CodeBundle> |
getCodeBundles()
Returns list of code bundles stored in this object. |
java.util.List<DeploymentPlan> |
getDeploymentPlans()
Returns list of deployment plans stored in this object. |
java.util.List<Frame> |
getFrames()
Returns list of frames stored in this object. |
java.util.List<InterfaceType> |
getInterfaceTypes()
Returns list of interface types stored in this object. |
java.util.List<MicroComponent> |
getMicroComponents()
Returns list of micro components stored in this object. |
java.util.List<MicroInterfaceType> |
getMicroInterfaceTypes()
Returns list of microinterface types stored in this object. |
static boolean |
isFirstClass(VersionedEntity entity)
Is the class of the entity manipulated separately in the repository? |
java.lang.String |
printContent()
Prints the names and versions of all contained entities to a String. |
VersionedEntity[] |
toArray()
Returns list of entities stored in this set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntitiesSet()
public EntitiesSet(java.lang.Iterable<? extends VersionedEntity> collection)
collection
- A collection of entities to be included in the set.public EntitiesSet(Entity[] collection)
collection
- A collection of entities to be included in the set.Method Detail |
---|
public static boolean isFirstClass(VersionedEntity entity)
entity
- The entity class to be evaluated
public void addUnknown(VersionedEntity entity)
entity
- The entity that should be added.
java.lang.IllegalArgumentException
- Argument is not a first class repository entity.public boolean contains(VersionedEntity entity)
entity
- The entity to be searched
java.lang.IllegalArgumentException
- Argument is not a first class repository entity.public java.util.List<VersionedEntity> getAll()
public VersionedEntity[] toArray()
public java.lang.String printContent()
public java.util.List<Architecture> getArchitectures()
public boolean contains(Architecture entity)
entity
- The entity to be searched
public void add(Architecture entity)
entity
- The entity that should be added.public void addArchitectures(java.lang.Iterable<Architecture> entities)
entity
- The entities that should be added.public java.util.List<Frame> getFrames()
public boolean contains(Frame entity)
entity
- The entity to be searched
public void add(Frame entity)
entity
- The entity that should be added.public void addFrames(java.lang.Iterable<Frame> entities)
entity
- The entities that should be added.public java.util.List<Aspect> getAspects()
public boolean contains(Aspect entity)
entity
- The entity to be searched
public void add(Aspect entity)
entity
- The entity that should be added.public void addAspects(java.lang.Iterable<Aspect> entities)
entity
- The entities that should be added.public java.util.List<CodeBundle> getCodeBundles()
public boolean contains(CodeBundle entity)
entity
- The entity to be searched
public void add(CodeBundle entity)
entity
- The entity that should be added.public void addCodeBundles(java.lang.Iterable<CodeBundle> entities)
entity
- The entities that should be added.public java.util.List<AssemblyDescriptor> getAssemblyDescriptors()
public boolean contains(AssemblyDescriptor entity)
entity
- The entity to be searched
public void add(AssemblyDescriptor entity)
entity
- The entity that should be added.public void addAssemblyDescriptors(java.lang.Iterable<AssemblyDescriptor> entities)
entity
- The entities that should be added.public java.util.List<InterfaceType> getInterfaceTypes()
public boolean contains(InterfaceType entity)
entity
- The entity to be searched
public void add(InterfaceType entity)
entity
- The entity that should be added.public void addInterfaceTypes(java.lang.Iterable<InterfaceType> entities)
entity
- The entities that should be added.public java.util.List<DeploymentPlan> getDeploymentPlans()
public boolean contains(DeploymentPlan entity)
entity
- The entity to be searched
public void add(DeploymentPlan entity)
entity
- The entity that should be added.public void addDeploymentPlans(java.lang.Iterable<DeploymentPlan> entities)
entity
- The entities that should be added.public java.util.List<MicroComponent> getMicroComponents()
public boolean contains(MicroComponent entity)
entity
- The entity to be searched
public void add(MicroComponent entity)
entity
- The entity that should be added.public void addMicroComponents(java.lang.Iterable<MicroComponent> entities)
entity
- The entities that should be added.public java.util.List<MicroInterfaceType> getMicroInterfaceTypes()
public boolean contains(MicroInterfaceType entity)
entity
- The entity to be searched
public void add(MicroInterfaceType entity)
entity
- The entity that should be added.public void addMicroInterfaceTypes(java.lang.Iterable<MicroInterfaceType> entities)
entity
- The entities that should be added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |