Class Operators.ShortcutOperator

  • Enclosing class:
    Operators

    public static final class Operators.ShortcutOperator
    extends Operators.SimpleFieldValuesOperator
    Shortcut operator is used to define a shortcut for existing operator with predefined operands.
    Since:
    6.4
    • Constructor Detail

      • ShortcutOperator

        public ShortcutOperator​(java.lang.String persistName,
                                java.lang.String displayName,
                                java.lang.Class[] allowedCapabilities,
                                DFOperator operator,
                                java.lang.Object[] values)
                         throws java.lang.IllegalArgumentException
        Constructor for shortcut operator.
        Parameters:
        persistName - Name used to persist the operator.
        displayName - Shortcuts display name.
        allowedCapabilities - Fields where the shortcut is allowed.
        operator - The represented operator.
        values - The default values for operator - not tested whether the values are applicable.
        Throws:
        java.lang.IllegalArgumentException - when the shortcut is allowed in field where it's parent operator is not allowed.
    • Method Detail

      • getOperator

        public DFOperator getOperator()
        Returns the operator represented by shortcut.
        Returns:
        operator.
      • getValues

        public java.lang.Object[] getValues()
        Returns the shortcut operators values.
        Returns:
        The values for the operator.