Class OperationRequiredRoleCreator
- java.lang.Object
-
- org.palladiosimulator.generator.fluent.shared.structure.Entity
-
- org.palladiosimulator.generator.fluent.system.structure.SystemEntity
-
- org.palladiosimulator.generator.fluent.system.structure.role.OperationRequiredRoleCreator
-
public class OperationRequiredRoleCreator extends SystemEntity
This class constructs anOperationRequiredRole
.- See Also:
OperationRequiredRole
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.generator.fluent.system.structure.SystemEntity
system
-
-
Constructor Summary
Constructors Constructor Description OperationRequiredRoleCreator(SystemCreator systemCreator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.pcm.repository.OperationRequiredRole
build()
Turns the entity in the making into the finished entity.OperationRequiredRoleCreator
withName(String name)
Defines the unique name of this current entity.OperationRequiredRoleCreator
withRequiredInterface(String name)
Defines theOperationInterface
this role requires.OperationRequiredRoleCreator
withRequiredInterface(org.palladiosimulator.pcm.repository.OperationInterface operationInterface)
Defines theOperationInterface
this role requires.
-
-
-
Constructor Detail
-
OperationRequiredRoleCreator
public OperationRequiredRoleCreator(SystemCreator systemCreator)
-
-
Method Detail
-
withRequiredInterface
public OperationRequiredRoleCreator withRequiredInterface(org.palladiosimulator.pcm.repository.OperationInterface operationInterface)
Defines theOperationInterface
this role requires.- Parameters:
operationInterface
-- Returns:
- this role creator
- See Also:
OperationInterface
-
withRequiredInterface
public OperationRequiredRoleCreator withRequiredInterface(String name) throws NoSuchElementException
Defines theOperationInterface
this role requires. Searches the repositories added to the org.palladiosimulator.generator.fluent.system for an interface that matches the given name.- Parameters:
name
-- Returns:
- this role creator
- Throws:
NoSuchElementException
- Thrown if no element matches the given name.- See Also:
OperationInterface
-
build
public org.palladiosimulator.pcm.repository.OperationRequiredRole build()
Description copied from class:Entity
Turns the entity in the making into the finished entity.
-
withName
public OperationRequiredRoleCreator withName(String name)
Description copied from class:Entity
Defines the unique name of this current entity. Once created entities are referenced by this name. Only entities with a unique name can be fetched from the model.
-
-