Package org.gnome.glib
Class MarkupParser
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.MarkupParser
- All Implemented Interfaces:
Proxy
Any of the fields in
GMarkupParser can be null, in which case they
will be ignored. Except for the error function, any of these callbacks
can set an error; in particular the MarkupError.UNKNOWN_ELEMENT,
MarkupError.UNKNOWN_ATTRIBUTE, and MarkupError.INVALID_CONTENT
errors are intended to be set from these callbacks. If you set an error
from a callback, g_markup_parse_context_parse() will report that error
back to its caller.
Refer to the GMarkup documentation to understand
the scope and limitations of GMarkupParser. In particular, it is not a
full XML parser and it must not be used to process untrusted data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theEndElementCallbackcallback.static interfaceFunctional interface declaration of theErrorCallbackcallback.static interfaceFunctional interface declaration of thePassthroughCallbackcallback.static interfaceFunctional interface declaration of theStartElementCallbackcallback.static interfaceFunctional interface declaration of theTextCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new MarkupParser.MarkupParser(Arena arena) Allocate a new MarkupParser.MarkupParser(MemorySegment address) Create a MarkupParser proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.voidoverrideEndElement(MarkupParser.EndElementCallback endElement, Arena _arena) Write a value in the fieldend_element.voidoverrideError(MarkupParser.ErrorCallback error, Arena _arena) Write a value in the fielderror.voidoverridePassthrough(MarkupParser.PassthroughCallback passthrough, Arena _arena) Write a value in the fieldpassthrough.voidoverrideStartElement(MarkupParser.StartElementCallback startElement, Arena _arena) Write a value in the fieldstart_element.voidoverrideText(MarkupParser.TextCallback text, Arena _arena) Write a value in the fieldtext.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
MarkupParser
Create a MarkupParser proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
MarkupParser
Allocate a new MarkupParser.- Parameters:
arena- to control the memory allocation scope
-
MarkupParser
public MarkupParser()Allocate a new MarkupParser. The memory is allocated withArena.ofAuto().
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideStartElement
Write a value in the fieldstart_element.- Parameters:
startElement- The new value for the fieldstart_element_arena- to control the memory allocation scope
-
overrideEndElement
Write a value in the fieldend_element.- Parameters:
endElement- The new value for the fieldend_element_arena- to control the memory allocation scope
-
overrideText
Write a value in the fieldtext.- Parameters:
text- The new value for the fieldtext_arena- to control the memory allocation scope
-
overridePassthrough
Write a value in the fieldpassthrough.- Parameters:
passthrough- The new value for the fieldpassthrough_arena- to control the memory allocation scope
-
overrideError
Write a value in the fielderror.- Parameters:
error- The new value for the fielderror_arena- to control the memory allocation scope
-