Class SimpleParameterType

    • Field Detail

      • PARAMETER_NAME_WIDTH

        public static final String PARAMETER_NAME_WIDTH
        Width parameter name. Used in transformations.
        Since:
        6.1.0
        See Also:
        Constant Field Values
      • PARAMETER_NAME_HEIGHT

        public static final String PARAMETER_NAME_HEIGHT
        Height parameter name. Used in transformations.
        Since:
        6.1.0
        See Also:
        Constant Field Values
      • PARAMETER_NAME_FORMAT

        public static final String PARAMETER_NAME_FORMAT
        Format parameter name. Used in transformations.
        Since:
        6.1.0
        See Also:
        Constant Field Values
      • NATIVE_TYPES_NAMES

        public static final Set<String> NATIVE_TYPES_NAMES
        Native parameter types. The types with these names (no matter the case) may not be deleted.
        Note: For standardization purpose, these names are stored in upper case.
        Since:
        6.2.0
        See Also:
        isNative(String)
      • NAMED_QUERY_FIND_PARAMETER_BY_NAME

        public static final String NAMED_QUERY_FIND_PARAMETER_BY_NAME
        Since:
        6.1.0
        See Also:
        Constant Field Values
      • NAMED_QUERY_REMOVE_USELESS_PARAM

        public static final String NAMED_QUERY_REMOVE_USELESS_PARAM
        Since:
        6.1.0
        See Also:
        Constant Field Values
      • NAMED_QUERY_FIND_PARAMETER_BY_NAME_PARAMETER

        public static final String NAMED_QUERY_FIND_PARAMETER_BY_NAME_PARAMETER
        Since:
        6.1.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • SimpleParameterType

        public SimpleParameterType()
    • Method Detail

      • getId

        public String getId()
        Returns the id.
        Returns:
        the id
        Since:
        6.1.0
      • setId

        public void setId​(String id)
        Sets the id.
        Parameters:
        id - the id value to set.
        Since:
        6.1.0
      • getName

        public String getName()
        Returns the parameterName.
        Specified by:
        getName in interface IParameterType
        Returns:
        the parameterName
        Since:
        6.1.0
      • setName

        public void setName​(String parameterName)
        Sets the parameterName.
        Parameters:
        parameterName - the parameterName value to set.
        Since:
        6.1.0
      • setTransformationBuilder

        public void setTransformationBuilder​(Class<? extends ITransformationBuilder> transformationBuilder)
        Sets the transformationBuilder.
        Parameters:
        transformationBuilder - the transformationBuilder value to set.
        Since:
        6.1.0
      • isRemovable

        public static boolean isRemovable​(String name)
                                   throws PortalException
        Asserts if a given transformation parameter is used by other transformations.
        Parameters:
        name - the name of the parameter
        Returns:
        true if the Transformation Parameter must be deleted or false if the parameter must not be deleted.
        Throws:
        PortalException
        Since:
        6.1.0
      • isNative

        public static final boolean isNative​(String name)
        Verify whether the given name is of one of the native types.
        Parameters:
        name - the type name.
        Returns:
        whether the given name is of one of the native types.
        Throws:
        NullPointerException - if the given name is null.
        Since:
        6.2.0
        See Also:
        NATIVE_TYPES_NAMES