Enum Class MarkupParseFlags

java.lang.Object
java.lang.Enum<MarkupParseFlags>
org.gnome.glib.MarkupParseFlags
All Implemented Interfaces:
Serializable, Comparable<MarkupParseFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum MarkupParseFlags extends Enum<MarkupParseFlags> implements Enumeration
Flags that affect the behaviour of the parser.
  • Enum Constant Details

    • DEFAULT_FLAGS

      public static final MarkupParseFlags DEFAULT_FLAGS
      No special behaviour. Since: 2.74
    • DO_NOT_USE_THIS_UNSUPPORTED_FLAG

      public static final MarkupParseFlags DO_NOT_USE_THIS_UNSUPPORTED_FLAG
      flag you should not use
    • TREAT_CDATA_AS_TEXT

      public static final MarkupParseFlags TREAT_CDATA_AS_TEXT
      When this flag is set, CDATA marked sections are not passed literally to the passthrough function of the parser. Instead, the content of the section (without the <![CDATA[ and ]]>) is passed to the text function. This flag was added in GLib 2.12
    • PREFIX_ERROR_POSITION

      public static final MarkupParseFlags 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 the GMarkupParser implementation functions
    • IGNORE_QUALIFIED

      public static final MarkupParseFlags 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

      public static MarkupParseFlags[] 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

      public static MarkupParseFlags valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<MarkupParseFlags> of(int flags)
      Create a new EnumSet<MarkupParseFlags> for the provided bitfield
      Parameters:
      flags - the MarkupParseFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<MarkupParseFlags> of(MemorySegment address)
      Create a new EnumSet<MarkupParseFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address