Class EntityTypesAPI


  • public class EntityTypesAPI
    extends Object
    • Constructor Detail

      • EntityTypesAPI

        public EntityTypesAPI()
    • Method Detail

      • createEmptyRepository

        public static org.palladiosimulator.pcm.resourcetype.ResourceRepository createEmptyRepository()
      • createEntityType

        public static EntityType createEntityType​(org.palladiosimulator.pcm.resourcetype.ResourceRepository repository,
                                                  String name)
        Creates a new entity type in the specified entity type repository.
        Parameters:
        repository - the repository in which the entity type is to be created
      • createEntityType

        public static EntityType createEntityType​(org.palladiosimulator.pcm.resourcetype.ResourceRepository repository,
                                                  String name,
                                                  EntityAccessType... accessTypes)
      • getProvidedInterface

        public static org.palladiosimulator.pcm.resourcetype.ResourceInterface getProvidedInterface​(EntityType entityType)
        Returns:
        the resource interface provided by the specified entity type. By convention, each entity type provides exactly one resource interface.
      • findSignatureByAccessType

        public static org.palladiosimulator.pcm.resourcetype.ResourceSignature findSignatureByAccessType​(org.palladiosimulator.pcm.resourcetype.ResourceInterface iface,
                                                                                                         EntityAccessType accessType)
        Parameters:
        iface - the interface to be examined
        accessType - the access type
        Returns:
        the resource signature that matches the given access type, or null if no such signature could be found in the specified interface.