Class ModelAdapter<T extends EObject>
- java.lang.Object
-
- org.palladiosimulator.protocom.model.ModelAdapter<T>
-
- Direct Known Subclasses:
ActionAdapter,AllocationAdapter,AllocationContextAdapter,AssemblyContextAdapter,BranchTransitionAdapter,BranchTransitionAdapter,InfrastructureProvidedRoleAdapter,InterfaceProvidingRequiringEntityAdapter,InterfaceRequiringEntityAdapter,OperationInterfaceAdapter,OperationProvidedRoleAdapter,OperationRequiredRoleAdapter,ParametricResourceDemandAdapter,ResourceContainerAdapter,ResourceDemandingBehaviourAdapter,ResourceEnvironmentAdapter,ScenarioBehaviourAdapter,ServiceEffectSpecificationAdapter,SignatureAdapter,UsageScenarioAdapter,UserActionAdapter,WorkloadAdapter
public abstract class ModelAdapter<T extends EObject> extends Object
Base class for all PCM model adapters.
-
-
Constructor Summary
Constructors Constructor Description ModelAdapter(T entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetBasePackageName(org.palladiosimulator.pcm.core.entity.NamedElement entity)TgetEntity()Gets the PCM entity that the adapter represents.StringgetName()Gets the name of the entity.StringgetSafeName()protected StringgetSafeName(org.palladiosimulator.pcm.core.entity.NamedElement entity)StringsafeSpecification(String specification)
-
-
-
Constructor Detail
-
ModelAdapter
public ModelAdapter(T entity)
-
-
Method Detail
-
getEntity
public T getEntity()
Gets the PCM entity that the adapter represents.- Returns:
- the PCM entity
-
getName
public String getName()
Gets the name of the entity.- Returns:
- a string containing the name of the entity
-
getSafeName
public String getSafeName()
-
getSafeName
protected String getSafeName(org.palladiosimulator.pcm.core.entity.NamedElement entity)
-
getBasePackageName
protected String getBasePackageName(org.palladiosimulator.pcm.core.entity.NamedElement entity)
-
-