Class ItemImpl

    • Constructor Detail

      • ItemImpl

        public ItemImpl()
        Constructor
    • Method Detail

      • isComputed

        public boolean isComputed()
        Get value of computed attribute
        Specified by:
        isComputed in interface Item
        Returns:
        true if item must be computed
      • getFormula

        public String getFormula()
        Get formula to use if item must be computed
        Specified by:
        getFormula in interface Item
        Returns:
        formula of type 'action.Validation.actor'
      • getMapTo

        public String getMapTo()
        Get the full user field name, to which this item is map
        Specified by:
        getMapTo in interface Item
        Returns:
        full user field name
      • getName

        public String getName()
        Get the name of this item
        Specified by:
        getName in interface Item
        Returns:
        item's name
      • isReadonly

        public boolean isReadonly()
        Get value of readOnly attribute
        Specified by:
        isReadonly in interface Item
        Returns:
        true if item must be readonly
      • getType

        public String getType()
        Get the type of this item
        Specified by:
        getType in interface Item
        Returns:
        item's type (text for text field)
      • setComputed

        public void setComputed​(boolean computed)
        Description copied from interface: Item
        Set value of computed attribute
        Specified by:
        setComputed in interface Item
        Parameters:
        computed - true if item must be computed
      • setFormula

        public void setFormula​(String formula)
        Description copied from interface: Item
        Set formula to use if item must be computed
        Specified by:
        setFormula in interface Item
        Parameters:
        formula - formula of type 'action.Validation.actor'
      • setMapTo

        public void setMapTo​(String mapTo)
        Description copied from interface: Item
        Set the full user field name, to which this item is map
        Specified by:
        setMapTo in interface Item
        Parameters:
        mapTo - full user field name
      • setName

        public void setName​(String name)
        Description copied from interface: Item
        Set the name of this item
        Specified by:
        setName in interface Item
        Parameters:
        name - item 's name
      • setReadonly

        public void setReadonly​(boolean readonly)
        Description copied from interface: Item
        Set value of readOnly attribute
        Specified by:
        setReadonly in interface Item
        Parameters:
        readonly - true if item must be readonly
      • setType

        public void setType​(String type)
        Description copied from interface: Item
        Set the type of this item
        Specified by:
        setType in interface Item
        Parameters:
        type - item 's type (text for text field)
      • getDescription

        public String getDescription​(String role,
                                     String language)
        Get description in specific language for the given role
        Specified by:
        getDescription in interface Item
        Parameters:
        role - role for which the description is
        language - description's language
        Returns:
        wanted description as a String object. If description is not found, search description with given role and default language, if not found again, return the default description in given language, if not found again, return the default description in default language, if not found again, return empty string.
      • getDescriptions

        public ContextualDesignations getDescriptions()
        Description copied from interface: Item
        Get all the descriptions
        Specified by:
        getDescriptions in interface Item
        Returns:
        an object containing the collection of the descriptions
      • getLabel

        public String getLabel​(String role,
                               String language)
        Get label in specific language for the given role
        Specified by:
        getLabel in interface Item
        Parameters:
        role - role for which the label is
        language - label's language
        Returns:
        wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
      • getLabels

        public ContextualDesignations getLabels()
        Description copied from interface: Item
        Get all the labels
        Specified by:
        getLabels in interface Item
        Returns:
        an object containing the collection of the labels
      • getParameter

        public Parameter getParameter​(String strName)
        Description copied from interface: Item
        Get the parameter specified by name
        Specified by:
        getParameter in interface Item
        Parameters:
        strName - the parameter name
        Returns:
        the parameters
      • createParameter

        public Parameter createParameter()
        Description copied from interface: Item
        Create an object implementing Parameter
        Specified by:
        createParameter in interface Item
        Returns:
      • addParameter

        public void addParameter​(Parameter parameter)
        Description copied from interface: Item
        Add a Parameter to the collection
        Specified by:
        addParameter in interface Item
      • iterateParameter

        public Iterator<Parameter> iterateParameter()
        Description copied from interface: Item
        Return an Iterator over the parameters collection
        Specified by:
        iterateParameter in interface Item
        Returns:
      • removeParameter

        public void removeParameter​(String strName)
                             throws WorkflowException
        Description copied from interface: Item
        Remove the parameter specified by its name
        Specified by:
        removeParameter in interface Item
        Parameters:
        strName - the name of the parameter
        Throws:
        WorkflowException - when the parameter cannot be found
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object