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.
  • Field Details

    • entity

      protected final T extends EObject entity
  • Constructor Details

    • ModelAdapter

      public ModelAdapter(T entity)
  • Method Details

    • 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()
    • safeSpecification

      public String safeSpecification(String specification)
    • getSafeName

      protected String getSafeName(org.palladiosimulator.pcm.core.entity.NamedElement entity)
    • getBasePackageName

      protected String getBasePackageName(org.palladiosimulator.pcm.core.entity.NamedElement entity)