Package org.gnome.gtk
Enum Class BuilderError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<BuilderError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum BuilderError
extends Enum<BuilderError>
implements Enumeration
Error codes that identify various errors that can occur while using
GtkBuilder
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn object id occurred twice.GtkBuilder
found an attribute that it doesn’t understand.A function could not be found.An object id is unknown.The specified property is unknown for the object class.The specified signal is unknown for the object class.GtkBuilder
found a tag that it doesn’t understand.A type-func attribute didn’t name a function that returns aGType
.GtkBuilder
couldn’t parse some attribute value.An attribute that is required byGtkBuilder
was missing.A required property value was missing.A specified object type is of the same type or derived from the type of the composite class being extended with builder XML.The wrong type was specified in a composite class’s template XMLThe input contained a tag thatGtkBuilder
can’t handle.The input file requires a newer version of GTK. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the BuilderError classint
getValue()
Get the numeric value of this enumstatic BuilderError
of
(int value) Create a new BuilderError for the provided valuestatic Quark
quark()
Registers an error quark forGtkBuilder
errors.static BuilderError
Returns the enum constant of this class with the specified name.static BuilderError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_TYPE_FUNCTION
A type-func attribute didn’t name a function that returns aGType
. -
UNHANDLED_TAG
The input contained a tag thatGtkBuilder
can’t handle. -
MISSING_ATTRIBUTE
An attribute that is required byGtkBuilder
was missing. -
INVALID_ATTRIBUTE
GtkBuilder
found an attribute that it doesn’t understand. -
INVALID_TAG
GtkBuilder
found a tag that it doesn’t understand. -
MISSING_PROPERTY_VALUE
A required property value was missing. -
INVALID_VALUE
GtkBuilder
couldn’t parse some attribute value. -
VERSION_MISMATCH
The input file requires a newer version of GTK. -
DUPLICATE_ID
An object id occurred twice. -
OBJECT_TYPE_REFUSED
A specified object type is of the same type or derived from the type of the composite class being extended with builder XML. -
TEMPLATE_MISMATCH
The wrong type was specified in a composite class’s template XML -
INVALID_PROPERTY
The specified property is unknown for the object class. -
INVALID_SIGNAL
The specified signal is unknown for the object class. -
INVALID_ID
An object id is unknown. -
INVALID_FUNCTION
A function could not be found. This often happens when symbols are set to be kept private. Compiling code with -rdynamic or using thegmodule-export-2.0
pkgconfig module can fix this problem.
-
-
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 BuilderError for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
quark
Registers an error quark forGtkBuilder
errors.- Returns:
- the error quark
-