Class DomainValue

java.lang.Object
com.aquima.interactions.composer.model.DomainValue
All Implemented Interfaces:
IDomainValue, Serializable

public class DomainValue extends Object implements IDomainValue
This class holds a single possible/allowed value for a field.
Since:
6.4
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • DomainValue

      public DomainValue(boolean isValid, IPrimitiveValue domainValue)
      Construct a domain value without presentation styles.
      Parameters:
      isValid - boolean indicating if the value is currently allowed.
      domainValue - the actual value.
    • DomainValue

      public DomainValue(boolean isValid, IDomainValueDefinition domainValue)
      Construct a domain value. The definition may contain presentation styles.
      Parameters:
      isValid - boolean indicating if the value is currently allowed.
      domainValue - the value definition
  • Method Details

    • getValue

      public IPrimitiveValue getValue()
      Description copied from interface: IDomainValue
      This method returns the actual value may be used in the field.
      Specified by:
      getValue in interface IDomainValue
      Returns:
      the actual value may be used in the field.
    • isCurrentlyValid

      public boolean isCurrentlyValid()
      Description copied from interface: IDomainValue
      This method returns a boolean indicating if the value is currently allowed by the field.
      Specified by:
      isCurrentlyValid in interface IDomainValue
      Returns:
      a boolean indicating if the value is currently allowed by the field.
    • getPresentationStyles

      public PresentationStyle[] getPresentationStyles()
      Description copied from interface: IDomainValue
      Returns the presentation styles of this domain value. If this value does not have any presentation styles, an empty array is returned.
      Specified by:
      getPresentationStyles in interface IDomainValue
      Returns:
      the presentations styles of this domain value, never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object