Enum SdlXliffConfLevel

    • Method Detail

      • values

        public static SdlXliffConfLevel[] 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 (SdlXliffConfLevel c : SdlXliffConfLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SdlXliffConfLevel 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
      • getConfValue

        public String getConfValue()
        Returns this confirmation level as a value that can be used in the 'conf' attribute of an <sdl:seg> element.
      • getStateValue

        public String getStateValue()
        Returns this confirmation level as a state value that can be used in the 'state' attribute of a <target> or <bin-target> element.
      • isValidConfValue

        public static boolean isValidConfValue​(String confValue)
        Returns true if there is a confirmation level for the given value.
      • fromConfValue

        public static SdlXliffConfLevel fromConfValue​(String confValue)
        Returns the confirmation level associated with the given value. Throws a IllegalArgumentException if the value cannot be mapped to a confirmation level.
      • isValidStateValue

        public static boolean isValidStateValue​(String stateValue)
        Returns true if there is a confirmation level for the given state value.
      • fromStateValue

        public static SdlXliffConfLevel fromStateValue​(String stateValue)
        Returns the confirmation level associated with the given state value. Throws a IllegalArgumentException if the state value cannot be mapped to a confirmation level.