Package org.gnome.gtk
Enum Class BuilderError
- All Implemented Interfaces:
Serializable,Comparable<BuilderError>,Constable,Enumeration
@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 ConstantsEnum ConstantDescriptionAn object id occurred twice.GtkBuilderfound 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.GtkBuilderfound a tag that it doesn’t understand.A type-func attribute didn’t name a function that returns aGType.GtkBuildercouldn’t parse some attribute value.An attribute that is required byGtkBuilderwas 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 thatGtkBuildercan’t handle.The input file requires a newer version of GTK. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the BuilderError classintgetValue()Get the numeric value of this enumstatic BuilderErrorof(int value) Create a new BuilderError for the provided valuestatic BuilderErrorof(MemorySegment address) Create a new BuilderError for the value in the provided memory address.static Quarkquark()Registers an error quark forGtkBuildererrors.static BuilderErrorReturns 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 thatGtkBuildercan’t handle. -
MISSING_ATTRIBUTE
An attribute that is required byGtkBuilderwas missing. -
INVALID_ATTRIBUTE
GtkBuilderfound an attribute that it doesn’t understand. -
INVALID_TAG
GtkBuilderfound a tag that it doesn’t understand. -
MISSING_PROPERTY_VALUE
A required property value was missing. -
INVALID_VALUE
GtkBuildercouldn’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.0pkgconfig 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new BuilderError for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-
getType
-
quark
Registers an error quark forGtkBuildererrors.- Returns:
- the error quark
-