Enum DisplayResultView

    • Method Detail

      • values

        public static DisplayResultView[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DisplayResultView c : DisplayResultView.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DisplayResultView valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromString

        public static DisplayResultView fromString​(String name)
        Gets the DisplayResultView instance that matches the specified result view name or code.
        Parameters:
        name - the enum name or the full name of a predefined result view in survey component.
        Returns:
        the DisplayResultView instance having as name the specified role name or DETAIL if no such role exists.
      • getIdentifier

        public String getIdentifier()
        The code of the view is a combination of the main and sub view separated by an underscore.
        Returns:
        a code as string.
      • getMainView

        public String getMainView()
        Gets the main view.
        Returns:
        a string.
      • getSecondaryLevelView

        public String getSecondaryLevelView()
        Gets the secondary level view.
        Returns:
        a string.
      • getMainViewBundleKey

        public String getMainViewBundleKey()
        Gets the bundle key of main view.
        Returns:
        a string representing a bundle key.
      • getSecondaryViewBundleKey

        public String getSecondaryViewBundleKey()
        Gets the bundle key of secondary level view.
        Returns:
        a string representing a bundle key.