Class NamedInstance

java.lang.Object
com.aquima.interactions.metamodel.impl.InstanceReference
com.aquima.interactions.metamodel.impl.NamedInstance
All Implemented Interfaces:
IInstanceReference, Serializable

public class NamedInstance extends InstanceReference
Instance reference that refers to an instance by name and type.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • NamedInstance

      protected NamedInstance(String entityName, String instanceName)
  • Method Details

    • getEntityName

      public String getEntityName()
      Description copied from interface: IInstanceReference
      This method returns the entity type of the instance this reference refers to. This method is only applicable for named references. For a direct reference, this method will return a null value.
      Returns:
      The type of the instance that is referred to.
    • getInstanceName

      public String getInstanceName()
      Description copied from interface: IInstanceReference
      This method returns the name of the instance this reference refers to. This method is only applicable for named references. For a direct reference, this method will return a null value.
      Returns:
      The name of the instance that is referred to.
    • getInstanceDefinition

      public IInstanceDefinition getInstanceDefinition()
      Description copied from interface: IInstanceReference
      This method returns the instance definition of the instance that this reference refers to. This method is only applicable for direct references. For a named reference, this method will return a null value.
      Returns:
      The instance definition of the instance this reference refers.
    • isDirectReference

      public boolean isDirectReference()
      Description copied from interface: IInstanceReference
      This method can be used to determine if this reference is a direct reference. A reference is either a named reference or a direct reference, so either this method will return true or the isNamedReference method will return true, but never both.
      Returns:
      true when the reference contains the definition of the instance it refers to.
    • isNamedReference

      public boolean isNamedReference()
      Description copied from interface: IInstanceReference
      This method can be used to determine if this reference is a named reference. A reference is either a named reference or a direct reference, so either this method will return true or the isDirectReference method will return true, but never both.
      Returns:
      true when the reference refers to the definition by name and type.