Class ElementReference

java.lang.Object
com.aquima.interactions.composer.model.definition.AbstractReference
com.aquima.interactions.composer.model.definition.ElementReference
All Implemented Interfaces:
Serializable

public class ElementReference extends AbstractReference
Reference based on name and type. This reference links to another static definition from the composer which is identified by name and type.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ElementReference

      public ElementReference(String targetName, ElementType targetType)
      Default constructor to create the reference with the name and type of the element the reference refers to.
      Parameters:
      targetName - Name of the element that is referred to (mandatory).
      targetType - Type of the element that is referred to (mandatory).
    • ElementReference

      protected ElementReference(IParserFactory factory, IReferenceDS datasource, String targetName)
    • ElementReference

      public ElementReference(ElementReference other)
      Copy constructor which creates a new element reference based on the reference passed.
      Parameters:
      other - The other element reference which data should be copied.
  • Method Details

    • duplicate

      public AbstractReference duplicate()
      Description copied from class: AbstractReference
      This method duplicates the definition and returns the copy.
      Specified by:
      duplicate in class AbstractReference
      Returns:
      Duplicate of the current element definition.
    • isInlineReference

      public boolean isInlineReference()
      Description copied from class: AbstractReference
      This method returns true if the reference is inline, so the reference contains the element definition.
      Specified by:
      isInlineReference in class AbstractReference
      Returns:
      Boolean indicating if the reference is an inline reference.