Interface EntityReferenceFactory<EntityType extends org.palladiosimulator.pcm.core.entity.Entity>

    • Method Detail

      • create

        EntityReference<EntityType> create​(String id)
        Creates a new EntityReference for an entity identified by the given id.
        Parameters:
        id - the id of the model element. See Identifier.getId()
        Returns:
        a new reference
      • createCached

        EntityReference<EntityType> createCached​(EntityType entity)
        Creates a new EntityReference which matches the provided model element. The resolved entity is cached by will not prevent garbage collection from cleaning it up.
        Parameters:
        entity - a resolved model element.
        Returns:
        a new reference