Class ParameterDefinition

    • Constructor Detail

      • ParameterDefinition

        public ParameterDefinition​(java.lang.String name,
                                   com.orchestranetworks.schema.SchemaTypeName type,
                                   com.onwbp.base.text.UserMessage label,
                                   com.onwbp.base.text.UserMessage description,
                                   boolean visibleOnDashboard)
        TODO A parameter definition without a default value and selected output parameters can be displayed on a dashboard.
        Since:
        2.5.0
      • ParameterDefinition

        public ParameterDefinition​(java.lang.String name,
                                   com.orchestranetworks.schema.SchemaTypeName type,
                                   com.onwbp.base.text.UserMessage label,
                                   com.onwbp.base.text.UserMessage description)
        A simple parameter definition without a default value.
        Since:
        1.4.0
      • ParameterDefinition

        public ParameterDefinition​(java.lang.String name,
                                   com.orchestranetworks.schema.SchemaTypeName type,
                                   com.onwbp.base.text.UserMessage label,
                                   com.onwbp.base.text.UserMessage description,
                                   java.lang.String defaultValue)
        A simple parameter definition with a default value.
        Since:
        1.4.0
      • ParameterDefinition

        public ParameterDefinition​(java.lang.String name,
                                   com.orchestranetworks.schema.SchemaTypeName type,
                                   com.onwbp.base.text.UserMessage label,
                                   com.onwbp.base.text.UserMessage description,
                                   ListConstraint listConstraint)
        A parameter definition with a list of values.
        Since:
        1.3.0
        See Also:
        ListConstraint
      • ParameterDefinition

        public ParameterDefinition​(java.lang.String name,
                                   com.orchestranetworks.schema.SchemaTypeName type,
                                   com.onwbp.base.text.UserMessage label,
                                   com.onwbp.base.text.UserMessage description,
                                   ListConstraint listConstraint,
                                   HTMLComponent htmlComponent)
        A parameter definition with a list of values and a UI component type.
        Since:
        1.4.0
        See Also:
        ListConstraint, HTMLComponent
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the parameter.
      • getType

        public com.orchestranetworks.schema.SchemaTypeName getType()
        Returns SchemaTypeName of the parameter.
      • getLabel

        public com.onwbp.base.text.UserMessage getLabel()
        Returns the label of the parameter.
      • getDescription

        public com.onwbp.base.text.UserMessage getDescription()
        Returns the description of the parameter.
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Returns the predefined value of the parameter if isList() returns false.
      • isList

        public boolean isList()
        Returns true if the definition is a multiple-occurrenced or enumeration type.
        Since:
        1.3.0
      • getDefaultValues

        @Deprecated
        public java.util.List<java.lang.String> getDefaultValues()
        Deprecated.
        As of v1.4.0, replaced by getDefaultPredefinedValues().
        Returns an empty list if isList() returns false.
        Since:
        1.3.0
      • getHTMLComponent

        public HTMLComponent getHTMLComponent()
        Returns the HTML Component that represents the parameter.
        Since:
        1.4.0
        See Also:
        HTMLComponent
      • isUndefinedValueSupported

        public boolean isUndefinedValueSupported()
        Returns true if the data type is Boolean, and it allows an undefined value.

        Since v1.4.0, it is the recommendation to use ParameterConstraint instead.

        Since:
        1.3.0
      • setUndefinedValueSupported

        public void setUndefinedValueSupported​(boolean undefinedValueSupported)
        The property is used for the Boolean data type.

        Since v1.4.0, it is the recommendation to use ParameterConstraint instead.

        Parameters:
        undefinedValueSupported - boolean
        Since:
        1.3.0
      • isNegativeSupported

        public boolean isNegativeSupported()
        Returns true if the data type is Number, and it allows a negative number.

        Since v1.4.0, it is the recommendation to use ParameterConstraint instead.

        Since:
        1.3.0
      • setNegativeSupported

        public void setNegativeSupported​(boolean negativeSupported)
        The property is used if the data type is Number.

        Since v1.4.0, it is the recommendation to use ParameterConstraint instead.

        Parameters:
        negativeSupported - boolean
        Since:
        1.3.0
      • isVisibleOnDashboard

        public boolean isVisibleOnDashboard()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object