Class ArgumentDescriptor


  • @API(type=EXTENDABLE,
         src=PUBLIC)
    public class ArgumentDescriptor
    extends java.lang.Object
    Descriptor class for an author operation argument.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArgumentDescriptor​(java.lang.String name, int type, java.lang.String description)
      Constructor of the argument descriptor class.
      ArgumentDescriptor​(java.lang.String name, int type, java.lang.String description, java.lang.String defaultValue)
      Constructor of the argument descriptor class.
      ArgumentDescriptor​(java.lang.String name, int type, java.lang.String description, java.lang.String[] allowedValues, java.lang.String defaultValue)
      Constructor of the argument descriptor class.
    • Field Detail

      • TYPE_STRING

        public static final int TYPE_STRING
        String argument type. The value is 0.
        See Also:
        Constant Field Values
      • TYPE_FRAGMENT

        public static final int TYPE_FRAGMENT
        XML fragment argument type. It is represented as a String The value is 1.
        See Also:
        Constant Field Values
      • TYPE_XPATH_EXPRESSION

        public static final int TYPE_XPATH_EXPRESSION
        Xpath expression argument type. It is represented as a String The value is 2.
        See Also:
        Constant Field Values
      • TYPE_CONSTANT_LIST

        public static final int TYPE_CONSTANT_LIST
        List of constant strings argument type. The value is 3.
        See Also:
        Constant Field Values
      • TYPE_SCRIPT

        public static final int TYPE_SCRIPT
        Script type (XSLT or XQuery). It is represented as a String The value is 4.
        See Also:
        Constant Field Values
      • TYPE_JAVA_OBJECT

        public static final int TYPE_JAVA_OBJECT
        An argument of this type is a Java object represented as a Map. This Map is interpreted by the operation that receives it.
        See Also:
        Constant Field Values
      • name

        protected java.lang.String name
        The argument name.
      • description

        protected java.lang.String description
        The string argument description.
      • allowedValues

        protected java.lang.String[] allowedValues
        The array containing the allowed values for the arguments with type TYPE_CONSTANTS_LIST.
      • defaultValue

        protected java.lang.String defaultValue
        The default value of the argument.
    • Constructor Detail

      • ArgumentDescriptor

        public ArgumentDescriptor​(java.lang.String name,
                                  int type,
                                  java.lang.String description)
        Constructor of the argument descriptor class.
        Parameters:
        name - The name of the argument.
        type - The type of the argument, one of: TYPE_STRING, TYPE_FRAGMENT, TYPE_SCRIPT, TYPE_XPATH_EXPRESSION, TYPE_CONSTANT_LIST,
        description - The description of the argument.
      • ArgumentDescriptor

        public ArgumentDescriptor​(java.lang.String name,
                                  int type,
                                  java.lang.String description,
                                  java.lang.String defaultValue)
        Constructor of the argument descriptor class.
        Parameters:
        name - The name of the argument.
        type - The type of the argument, one of: TYPE_STRING, TYPE_FRAGMENT, TYPE_SCRIPT, TYPE_XPATH_EXPRESSION, TYPE_CONSTANT_LIST,
        description - The description of the argument.
        defaultValue - The default value of the argument.
      • ArgumentDescriptor

        public ArgumentDescriptor​(java.lang.String name,
                                  int type,
                                  java.lang.String description,
                                  java.lang.String[] allowedValues,
                                  java.lang.String defaultValue)
        Constructor of the argument descriptor class.
        Parameters:
        name - The name of the argument.
        type - The type of the argument, one of: TYPE_STRING, TYPE_FRAGMENT, TYPE_SCRIPT, TYPE_XPATH_EXPRESSION, TYPE_CONSTANT_LIST,
        description - The description of the argument.
        allowedValues - The allowed values for the defined argument.
        defaultValue - The default value of the argument.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        The name of the argument.
      • getDescription

        public java.lang.String getDescription()
        Returns:
        The description of the argument.
      • getAllowedValues

        public java.lang.String[] getAllowedValues()
        Returns:
        The array with allowed values. Is used for TYPE_CONSTANTS_LIST arguments.
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Returns:
        The default value of the argument.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()