Class ReportingReferenceDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDS
com.aquima.interactions.composer.report.ReportingReferenceDS
All Implemented Interfaces:
IReferenceDS, IReportingDS

public class ReportingReferenceDS extends ReportingDS implements IReferenceDS
IReferenceDS implementation that adds error reporting.
Author:
r.fleuren
  • Constructor Details

  • Method Details

    • getTargetType

      public ElementType getTargetType()
      Description copied from interface: IReferenceDS
      This method returns the type of the element that is referred to.
      Specified by:
      getTargetType in interface IReferenceDS
      Returns:
      The type of the element that is referred to.
    • getPresentationStyles

      public String[] getPresentationStyles()
      Description copied from interface: IReferenceDS
      The containment determines the styles in which an element is shown. A unique element can be included in different containers, but shown in different styles. The styles is sometimes also referred to as the format of the element.
      Specified by:
      getPresentationStyles in interface IReferenceDS
      Returns:
      The styles in which the element should be shown.
    • getPresentationStyleCondition

      public String getPresentationStyleCondition(String presentationStyle)
      Description copied from interface: IReferenceDS
      Returns the precondition for a presentationStyle.
      Specified by:
      getPresentationStyleCondition in interface IReferenceDS
      Parameters:
      presentationStyle - The name of the presentationStyle, not null.
      Returns:
      The precondition, or null in case no precondition was defined.
    • getContentStyle

      public String getContentStyle()
      Description copied from interface: IReferenceDS
      The containment determines can override the content style in which an element is shown.
      Specified by:
      getContentStyle in interface IReferenceDS
      Returns:
      The content style in which the element should be shown.
    • getReadonlyCondition

      public String getReadonlyCondition()
      Description copied from interface: IReferenceDS
      The condition that will determine if the element that is referred is shown read only. Usually this condition will contain either 'true' or 'false', but is may also contain a complex expression returning a boolean.
      Specified by:
      getReadonlyCondition in interface IReferenceDS
      Returns:
      The condition that will determine if the element that is referred is shown read only.
    • getCondition

      public String getCondition()
      Description copied from interface: IReferenceDS
      This method returns the optional condition expression that should be evaluated to determine if the element that is referred to should be included.
      Specified by:
      getCondition in interface IReferenceDS
      Returns:
      The condition expression that determines if the referred element item is applicable.
    • isRefreshElement

      public boolean isRefreshElement()
      Description copied from interface: IReferenceDS
      This method returns a boolean indicating if a 'refresh' event should be generated when the value of the referred element changes. The refresh property is usually only relevant for field and button elements.
      Specified by:
      isRefreshElement in interface IReferenceDS
      Returns:
      boolean indicating if a 'refresh' event should be generated when the value of the referred element changes.
    • getCreateInstanceForEmptyRelation

      public boolean getCreateInstanceForEmptyRelation()
      Description copied from interface: IReferenceDS
      This method may be implemented to indicate that an instance is created when the value of the relation is empty.
      Specified by:
      getCreateInstanceForEmptyRelation in interface IReferenceDS
      Returns:
      boolean indicating if empty relations should trigger the creation of an instance.
    • getButtonActions

      public String[] getButtonActions()
      Description copied from interface: IReferenceDS
      This method returns the action of a button reference.
      Specified by:
      getButtonActions in interface IReferenceDS
      Returns:
      the action of a button reference.
    • getButtonEvent

      public String getButtonEvent()
      Description copied from interface: IReferenceDS
      This method returns the event of a button reference.
      Specified by:
      getButtonEvent in interface IReferenceDS
      Returns:
      the event of a button reference.
    • getAssetFormat

      public String getAssetFormat()
      Description copied from interface: IReferenceDS
      This method returns the format that should be used when the reference is pointing to an asset (text).
      Specified by:
      getAssetFormat in interface IReferenceDS
      Returns:
      the format that should be used when the reference is pointing to an asset (text).
    • getDisplayLength

      public IntegerValue getDisplayLength()
      Description copied from interface: IReferenceDS
      This method returns the maximum length of the element that is referred. This property is usually used for containments referring field elements. This method should return null or unknown when reference refers to an element that has no display length.
      Specified by:
      getDisplayLength in interface IReferenceDS
      Returns:
      This method returns the maximum length of the element that is referred.
    • getMaskCallName

      public String getMaskCallName()
      Description copied from interface: IReferenceDS
      This method returns the mask call of the element that is referred. This property is usually used for containments referring field elements.
      Specified by:
      getMaskCallName in interface IReferenceDS
      Returns:
      This method returns the mask call name of the element that is referred.
    • getRepeatExpression

      public String getRepeatExpression()
      Description copied from interface: IReferenceDS
      This method returns the optional repeat expression that should be used to determine the context of the element. The repeat expression can be a relation attribute containing the instance that should be active when evaluating the content item that is referred to.
      Specified by:
      getRepeatExpression in interface IReferenceDS
      Returns:
      The expression that should be used to determine the context.
    • getSortAttribute

      public String getSortAttribute()
      Description copied from interface: IReferenceDS
      This method returns the attribute that should be used to sort the instances on that where returned from the context expression. When no attribute is specified, the instances will be sorted on ID. This method is only relevant when a context expression has been specified.
      Specified by:
      getSortAttribute in interface IReferenceDS
      Returns:
      the attribute that should be used to sort the instances on that where returned from the context expression.
    • sortAscending

      public boolean sortAscending()
      Description copied from interface: IReferenceDS
      This method returns a boolean indicating if the instances should be sorted in ascending order. This method is only relevant when a context expression has been specified.
      Specified by:
      sortAscending in interface IReferenceDS
      Returns:
      a boolean indicating if the instances should be sorted in ascending order.
    • isLinkedViaRelationAttribute

      public boolean isLinkedViaRelationAttribute()
      Description copied from interface: IReferenceDS
      This (temporary) method describes if the element is linked via a relation attribute. For example two containers that are linked via a relation attribute. In the future this will be replaced by a repeat expression.
      Specified by:
      isLinkedViaRelationAttribute in interface IReferenceDS
      Returns:
      Boolean indicating if the reference is a link via a releation attribute.
    • getHeight

      public IntegerValue getHeight()
      Description copied from interface: IReferenceDS
      This method returns the image height.
      Specified by:
      getHeight in interface IReferenceDS
      Returns:
      Image height (may be null)
    • getWidth

      public IntegerValue getWidth()
      Description copied from interface: IReferenceDS
      This method returns the image width.
      Specified by:
      getWidth in interface IReferenceDS
      Returns:
      Image width (may be null)
    • getDisplayText

      public IMultilingualText getDisplayText()
      Description copied from interface: IReferenceDS
      This method returns an optional display text for this reference, for example to overwrite the display text of a container (when this reference refers to a container).
      Specified by:
      getDisplayText in interface IReferenceDS
      Returns:
      The optional display text.