Package org.gnome.glib
Enum Class MarkupCollectType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<MarkupCollectType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum MarkupCollectType
extends Enum<MarkupCollectType>
implements Enumeration
A mixed enumerated type and flags field. You must specify one type
(string, strdup, boolean, tristate). Additionally, you may optionally
bitwise OR the type with the flag
OPTIONAL
.
It is likely that this enum will be extended in the future to support other types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionexpects a parameter of type (gboolean *) and parses the attribute value as a boolean.used to terminate the list of attributes to collectcan be bitwise ORed with the other fields.as withSTRING
, but expects a parameter of type (char **) and g_strdup()s the returned pointer.collect the string pointer directly from the attribute_values[] array.as withBOOLEAN
, but in the case of a missing attribute a value is set that compares equal to neitherfalse
nortrue
G_MARKUP_COLLECT_OPTIONAL is implied -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic MarkupCollectType
of
(int value) Create a new MarkupCollectType for the provided valuestatic MarkupCollectType
Returns the enum constant of this class with the specified name.static MarkupCollectType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
used to terminate the list of attributes to collect -
STRING
collect the string pointer directly from the attribute_values[] array. Expects a parameter of type (const char **). IfOPTIONAL
is specified and the attribute isn't present then the pointer will be set tonull
-
STRDUP
as withSTRING
, but expects a parameter of type (char **) and g_strdup()s the returned pointer. The pointer must be freed with g_free() -
BOOLEAN
expects a parameter of type (gboolean *) and parses the attribute value as a boolean. Setsfalse
if the attribute isn't present. Valid boolean values consist of (case-insensitive) "false", "f", "no", "n", "0" and "true", "t", "yes", "y", "1" -
TRISTATE
as withBOOLEAN
, but in the case of a missing attribute a value is set that compares equal to neitherfalse
nortrue
G_MARKUP_COLLECT_OPTIONAL is implied -
OPTIONAL
can be bitwise ORed with the other fields. If present, allows the attribute not to appear. A default value is set depending on what value type is used
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new MarkupCollectType for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-