Class HasLength

    • Field Detail

      • m_MinLength

        protected int m_MinLength
        the minimum number of elements.
      • m_MaxLength

        protected int m_MaxLength
        the maximum number of elements.
    • Constructor Detail

      • HasLength

        public HasLength()
    • Method Detail

      • setMinLength

        public void setMinLength​(int value)
        Sets the minimum number of elements the array has to have.
        Parameters:
        value - the number of elements (-1: no lower bound)
      • getMinLength

        public int getMinLength()
        Returns the minimum number of elements the array has to have
        Returns:
        the number of elements (-1: no lower bound)
      • minLengthTipText

        public String minLengthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setMaxLength

        public void setMaxLength​(int value)
        Sets the maximum number of elements the array can have.
        Parameters:
        value - the number of elements (-1: no upper bound)
      • getMaxLength

        public int getMaxLength()
        Returns the maximum number of elements the array can have
        Returns:
        the number of elements (-1: no upper bound)
      • maxLengthTipText

        public String maxLengthTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doEvaluate

        protected boolean doEvaluate​(Actor owner,
                                     Token token)
        Performs the actual evaluation.
        Specified by:
        doEvaluate in class AbstractBooleanCondition
        Parameters:
        owner - the owning actor
        token - the current token passing through
        Returns:
        the result of the evaluation