Enum ETriState

    • Enum Constant Detail

      • UNDEFINED

        public static final ETriState UNDEFINED
    • Method Detail

      • values

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

        public static ETriState 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
      • getID

        @Nonnull
        @Nonempty
        public String getID()
        Description copied from interface: IHasID
        Get the unique ID of this object. If the type is String than the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)!
        Specified by:
        getID in interface IHasID<String>
        Returns:
        The ID of this object. May not be null.
      • isTrue

        public boolean isTrue()
        Specified by:
        isTrue in interface ITriState
        Returns:
        true if the value is true.
      • isFalse

        public boolean isFalse()
        Specified by:
        isFalse in interface ITriState
        Returns:
        true if the value is false
      • isDefined

        public boolean isDefined()
        Specified by:
        isDefined in interface ITriState
        Returns:
        true if the value is not undefined (if it is either true or false)
      • valueOf

        @Nonnull
        public static ETriState valueOf​(boolean bValue)
        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:
        bValue - 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
      • valueOf

        @Nonnull
        public static ETriState valueOf​(@Nullable
                                        Boolean aValue)
        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:
        aValue - 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
      • valueOf

        @Nonnull
        public static ETriState valueOf​(@Nonnull
                                        ITriState aTriState)
        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:
        aTriState - 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