Package org.gnome.glib
Enum Class MarkupParseFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<MarkupParseFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum MarkupParseFlags
extends Enum<MarkupParseFlags>
implements Enumeration
Flags that affect the behaviour of the parser.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNo special behaviour.flag you should not useIgnore (don't report) qualified attributes and tags, along with their contents.Normally errors caught by GMarkup itself have line/column information prefixed to them to let the caller know the location of the error.When this flag is set, CDATA marked sections are not passed literally to thepassthrough
function of the parser. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic MarkupParseFlags
of
(int value) Create a new MarkupParseFlags for the provided valuestatic MarkupParseFlags
Returns the enum constant of this class with the specified name.static MarkupParseFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT_FLAGS
No special behaviour. Since: 2.74 -
DO_NOT_USE_THIS_UNSUPPORTED_FLAG
flag you should not use -
TREAT_CDATA_AS_TEXT
When this flag is set, CDATA marked sections are not passed literally to thepassthrough
function of the parser. Instead, the content of the section (without the<![CDATA[
and]]>
) is passed to thetext
function. This flag was added in GLib 2.12 -
PREFIX_ERROR_POSITION
Normally errors caught by GMarkup itself have line/column information prefixed to them to let the caller know the location of the error. When this flag is set the location information is also prefixed to errors generated by theGMarkupParser
implementation functions -
IGNORE_QUALIFIED
Ignore (don't report) qualified attributes and tags, along with their contents. A qualified attribute or tag is one that contains ':' in its name (ie: is in another namespace). Since: 2.40.
-
-
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 MarkupParseFlags 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
-