io.qt.xml.QDomDocument Maven / Gradle / Ivy
Show all versions of qtjambi-xml Show documentation
package io.qt.xml;
import io.qt.*;
/**
* Represents an XML document
* Java wrapper for Qt class QDomDocument
*/
public class QDomDocument extends io.qt.xml.QDomNode
implements java.lang.Cloneable
{
@QtPropertyMember(enabled=false)
private Object __rcContent;
/**
* Java wrapper for Qt enum QDomDocument::ParseOption
* @since This enum was introduced in Qt 6.5.
*
* @see ParseOptions
*/
public enum ParseOption implements QtFlagEnumerator {
/**
* Representing QDomDocument:: ParseOption:: Default
*/
Default(0),
/**
* Representing QDomDocument:: ParseOption:: UseNamespaceProcessing
*/
UseNamespaceProcessing(1),
/**
* Representing QDomDocument:: ParseOption:: PreserveSpacingOnlyNodes
*/
PreserveSpacingOnlyNodes(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private ParseOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull ParseOptions asFlags() {
return new ParseOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull ParseOptions combined(@NonNull ParseOption e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull ParseOptions cleared(@NonNull ParseOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link ParseOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull ParseOptions flags(@Nullable ParseOption @NonNull... values) {
return new ParseOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ParseOption resolve(int value) {
switch (value) {
case 0: return Default;
case 1: return UseNamespaceProcessing;
case 2: return PreserveSpacingOnlyNodes;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link ParseOption}
*/
public static final class ParseOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0xfb082e55aa9a956dL;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new ParseOptions where the flags in args
are set.
* @param args enum entries
*/
public ParseOptions(@Nullable ParseOption @NonNull... args){
super(args);
}
/**
* Creates a new ParseOptions with given value
.
* @param value
*/
public ParseOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new ParseOptions
*/
@Override
public final @NonNull ParseOptions combined(@StrictNonNull ParseOption e){
return new ParseOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull ParseOptions setFlag(@Nullable ParseOption e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
@Override
public final @NonNull ParseOptions setFlag(@Nullable ParseOption e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this ParseOptions.
* @return array of enum entries
*/
@Override
public final @NonNull ParseOption @NonNull[] flags(){
return super.flags(ParseOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull ParseOptions clone(){
return new ParseOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull ParseOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Struct is used to store the result of QDomDocument::setContent()
* Java wrapper for Qt class QDomDocument::ParseResult
* @since This class was introduced in Qt 6.5.
*/
public static class ParseResult extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QDomDocument::ParseResult:: ParseResult()
*/
public ParseResult(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(ParseResult instance);
/**
* See QDomDocument::ParseResult:: ParseResult(QDomDocument::ParseResult)
* @param other
*/
public ParseResult(io.qt.xml.QDomDocument.@NonNull ParseResult other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(ParseResult instance, io.qt.xml.QDomDocument.ParseResult other);
/**
* See QDomDocument::ParseResult:: ParseResult{QString, qsizetype, qsizetype}
* @param errorMessage
* @param errorLine
* @param errorColumn
*/
public ParseResult(java.lang.@NonNull String errorMessage, long errorLine, long errorColumn){
super((QPrivateConstructor)null);
initialize_native(this, errorMessage, errorLine, errorColumn);
}
private native static void initialize_native(ParseResult instance, java.lang.String errorMessage, long errorLine, long errorColumn);
/**
* See QDomDocument::ParseResult:: operator bool()const
* @return
*/
@QtUninvokable
public final boolean success(){
return success_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean success_native_constfct(long __this__nativeId);
/**
* See operator==(QDomDocument::ParseResult, QDomDocument::ParseResult)
* @param value2
* @return
*/
@QtUninvokable
public final boolean equals(io.qt.xml.QDomDocument.@NonNull ParseResult value2){
return equals_native_cref_QDomDocument_ParseResult(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2));
}
@QtUninvokable
private native boolean equals_native_cref_QDomDocument_ParseResult(long __this__nativeId, long value2);
/**
* See QDomDocument::ParseResult:: errorColumn
* @param errorColumn
*/
@QtUninvokable
public final void setErrorColumn(long errorColumn){
setErrorColumn_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), errorColumn);
}
@QtUninvokable
private native void setErrorColumn_native_qsizetype(long __this__nativeId, long errorColumn);
/**
* See QDomDocument::ParseResult:: errorColumn
* @return
*/
@QtUninvokable
public final long errorColumn(){
return errorColumn_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long errorColumn_native(long __this__nativeId);
/**
* See QDomDocument::ParseResult:: errorLine
* @param errorLine
*/
@QtUninvokable
public final void setErrorLine(long errorLine){
setErrorLine_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), errorLine);
}
@QtUninvokable
private native void setErrorLine_native_qsizetype(long __this__nativeId, long errorLine);
/**
* See QDomDocument::ParseResult:: errorLine
* @return
*/
@QtUninvokable
public final long errorLine(){
return errorLine_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long errorLine_native(long __this__nativeId);
/**
* See QDomDocument::ParseResult:: errorMessage
* @param errorMessage
*/
@QtUninvokable
public final void setErrorMessage(java.lang.@NonNull String errorMessage){
setErrorMessage_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), errorMessage);
}
@QtUninvokable
private native void setErrorMessage_native_cref_QString(long __this__nativeId, java.lang.String errorMessage);
/**
* See QDomDocument::ParseResult:: errorMessage
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String errorMessage(){
return errorMessage_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String errorMessage_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected ParseResult(QPrivateConstructor p) { super(p); }
/**
* See operator==(QDomDocument::ParseResult, QDomDocument::ParseResult)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.xml.QDomDocument.ParseResult) {
return equals((io.qt.xml.QDomDocument.ParseResult) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QDomDocument::ParseResult)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QDomDocument::ParseResult:: ParseResult(QDomDocument::ParseResult)
*/
@QtUninvokable
@Override
public ParseResult clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native ParseResult clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #errorColumn()} instead.
*/
@QtUninvokable
public final long getErrorColumn() {
return errorColumn();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #errorLine()} instead.
*/
@QtUninvokable
public final long getErrorLine() {
return errorLine();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #errorMessage()} instead.
*/
@QtUninvokable
public final java.lang.@NonNull String getErrorMessage() {
return errorMessage();
}
}
/**
* See QDomDocument:: QDomDocument()
*/
public QDomDocument(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QDomDocument instance);
/**
* See QDomDocument:: QDomDocument(QDomDocument)
* @param document
*/
public QDomDocument(io.qt.xml.@NonNull QDomDocument document){
super((QPrivateConstructor)null);
initialize_native(this, document);
}
private native static void initialize_native(QDomDocument instance, io.qt.xml.QDomDocument document);
/**
* See QDomDocument:: QDomDocument(QDomDocumentType)
* @param doctype
*/
public QDomDocument(io.qt.xml.@NonNull QDomDocumentType doctype){
super((QPrivateConstructor)null);
initialize_native(this, doctype);
}
private native static void initialize_native(QDomDocument instance, io.qt.xml.QDomDocumentType doctype);
/**
* See QDomDocument:: QDomDocument(QString)
* @param name
*/
public QDomDocument(java.lang.@NonNull String name){
super((QPrivateConstructor)null);
initialize_native(this, name);
}
private native static void initialize_native(QDomDocument instance, java.lang.String name);
/**
* See QDomDocument:: createAttribute(QString)
* @param name
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomAttr createAttribute(java.lang.@NonNull String name){
return createAttribute_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native io.qt.xml.QDomAttr createAttribute_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QDomDocument:: createAttributeNS(QString, QString)
* @param nsURI
* @param qName
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomAttr createAttributeNS(java.lang.@NonNull String nsURI, java.lang.@NonNull String qName){
return createAttributeNS_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), nsURI, qName);
}
@QtUninvokable
private native io.qt.xml.QDomAttr createAttributeNS_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String nsURI, java.lang.String qName);
/**
* See QDomDocument:: createCDATASection(QString)
* @param data
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomCDATASection createCDATASection(java.lang.@NonNull String data){
return createCDATASection_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native io.qt.xml.QDomCDATASection createCDATASection_native_cref_QString(long __this__nativeId, java.lang.String data);
/**
* See QDomDocument:: createComment(QString)
* @param data
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomComment createComment(java.lang.@NonNull String data){
return createComment_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native io.qt.xml.QDomComment createComment_native_cref_QString(long __this__nativeId, java.lang.String data);
/**
* See QDomDocument:: createDocumentFragment()
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomDocumentFragment createDocumentFragment(){
return createDocumentFragment_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.xml.QDomDocumentFragment createDocumentFragment_native(long __this__nativeId);
/**
* See QDomDocument:: createElement(QString)
* @param tagName
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomElement createElement(java.lang.@NonNull String tagName){
return createElement_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), tagName);
}
@QtUninvokable
private native io.qt.xml.QDomElement createElement_native_cref_QString(long __this__nativeId, java.lang.String tagName);
/**
* See QDomDocument:: createElementNS(QString, QString)
* @param nsURI
* @param qName
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomElement createElementNS(java.lang.@NonNull String nsURI, java.lang.@NonNull String qName){
return createElementNS_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), nsURI, qName);
}
@QtUninvokable
private native io.qt.xml.QDomElement createElementNS_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String nsURI, java.lang.String qName);
/**
* See QDomDocument:: createEntityReference(QString)
* @param name
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomEntityReference createEntityReference(java.lang.@NonNull String name){
return createEntityReference_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native io.qt.xml.QDomEntityReference createEntityReference_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QDomDocument:: createProcessingInstruction(QString, QString)
* @param target
* @param data
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomProcessingInstruction createProcessingInstruction(java.lang.@NonNull String target, java.lang.@NonNull String data){
return createProcessingInstruction_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), target, data);
}
@QtUninvokable
private native io.qt.xml.QDomProcessingInstruction createProcessingInstruction_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String target, java.lang.String data);
/**
* See QDomDocument:: createTextNode(QString)
* @param data
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomText createTextNode(java.lang.@NonNull String data){
return createTextNode_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native io.qt.xml.QDomText createTextNode_native_cref_QString(long __this__nativeId, java.lang.String data);
/**
* See QDomDocument:: doctype()const
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomDocumentType doctype(){
return doctype_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.xml.QDomDocumentType doctype_native_constfct(long __this__nativeId);
/**
* See QDomDocument:: documentElement()const
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomElement documentElement(){
return documentElement_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.xml.QDomElement documentElement_native_constfct(long __this__nativeId);
/**
* See QDomDocument:: elementById(QString)
* @param elementId
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomElement elementById(java.lang.@NonNull String elementId){
return elementById_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), elementId);
}
@QtUninvokable
private native io.qt.xml.QDomElement elementById_native_cref_QString(long __this__nativeId, java.lang.String elementId);
/**
* See QDomDocument:: elementsByTagName(QString)const
* @param tagname
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomNodeList elementsByTagName(java.lang.@NonNull String tagname){
return elementsByTagName_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), tagname);
}
@QtUninvokable
private native io.qt.xml.QDomNodeList elementsByTagName_native_cref_QString_constfct(long __this__nativeId, java.lang.String tagname);
/**
* See QDomDocument:: elementsByTagNameNS(QString, QString)
* @param nsURI
* @param localName
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomNodeList elementsByTagNameNS(java.lang.@NonNull String nsURI, java.lang.@NonNull String localName){
return elementsByTagNameNS_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), nsURI, localName);
}
@QtUninvokable
private native io.qt.xml.QDomNodeList elementsByTagNameNS_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String nsURI, java.lang.String localName);
/**
* See QDomDocument:: implementation()const
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomImplementation implementation(){
return implementation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.xml.QDomImplementation implementation_native_constfct(long __this__nativeId);
/**
* See QDomDocument:: importNode(QDomNode, bool)
* @param importedNode
* @param deep
* @return
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomNode importNode(io.qt.xml.@NonNull QDomNode importedNode, boolean deep){
return importNode_native_cref_QDomNode_bool(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(importedNode), deep);
}
@QtUninvokable
private native io.qt.xml.QDomNode importNode_native_cref_QDomNode_bool(long __this__nativeId, long importedNode, boolean deep);
/**
* See QDomDocument:: operator=(QDomDocument)
* @param other
*/
@QtUninvokable
public final void assign(io.qt.xml.@NonNull QDomDocument other){
assign_native_cref_QDomDocument(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QDomDocument(long __this__nativeId, long other);
/**
* See QDomDocument:: setContent(QAnyStringView, QDomDocument::ParseOptions)
* @since This function was introduced in Qt 6.5.
* @param data
* @param options
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(java.lang.@NonNull String data, io.qt.xml.QDomDocument.@NonNull ParseOptions options){
return setContent_native_QAnyStringView_QDomDocument_ParseOptions(QtJambi_LibraryUtilities.internal.nativeId(this), data, options.value());
}
@QtUninvokable
private native io.qt.xml.QDomDocument.ParseResult setContent_native_QAnyStringView_QDomDocument_ParseOptions(long __this__nativeId, java.lang.String data, int options);
/**
* See QDomDocument:: setContent(QByteArray, bool, QString*, int*, int*)
* @param text
* @param namespaceProcessing
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@StrictNonNull Result setContent(io.qt.core.@NonNull QByteArray text, boolean namespaceProcessing){
return setContent_native_cref_QByteArray_bool_QString_ptr_int_ptr_int_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(text), namespaceProcessing);
}
@QtUninvokable
private native io.qt.xml.QDomDocument.Result setContent_native_cref_QByteArray_bool_QString_ptr_int_ptr_int_ptr(long __this__nativeId, long text, boolean namespaceProcessing);
/**
* See QDomDocument:: setContent(QIODevice*, QDomDocument::ParseOptions)
* @since This function was introduced in Qt 6.5.
* @param device
* @param options
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@Nullable QIODevice device, io.qt.xml.QDomDocument.@NonNull ParseOptions options){
InternalAccess.NativeIdInfo __device__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(device);
io.qt.xml.QDomDocument.@NonNull ParseResult __qt_return_value = setContent_native_QIODevice_ptr_QDomDocument_ParseOptions(QtJambi_LibraryUtilities.internal.nativeId(this), __device__NativeIdInfo.nativeId(), options.value());
if (__device__NativeIdInfo.needsReferenceCounting()) {
__rcContent = device;
}else{
__rcContent = null;
}
return __qt_return_value;
}
@QtUninvokable
private native io.qt.xml.QDomDocument.ParseResult setContent_native_QIODevice_ptr_QDomDocument_ParseOptions(long __this__nativeId, long device, int options);
/**
* See QDomDocument:: setContent(QIODevice*, bool, QString*, int*, int*)
* @param dev
* @param namespaceProcessing
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@StrictNonNull Result setContent(io.qt.core.@Nullable QIODevice dev, boolean namespaceProcessing){
InternalAccess.NativeIdInfo __dev__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(dev);
io.qt.xml.QDomDocument.Result __qt_return_value = setContent_native_QIODevice_ptr_bool_QString_ptr_int_ptr_int_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __dev__NativeIdInfo.nativeId(), namespaceProcessing);
if (__dev__NativeIdInfo.needsReferenceCounting()) {
__rcContent = dev;
}else{
__rcContent = null;
}
return __qt_return_value;
}
@QtUninvokable
private native io.qt.xml.QDomDocument.Result setContent_native_QIODevice_ptr_bool_QString_ptr_int_ptr_int_ptr(long __this__nativeId, long dev, boolean namespaceProcessing);
/**
* See QDomDocument:: setContent(QString, bool, QString*, int*, int*)
* @param text
* @param namespaceProcessing
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@StrictNonNull Result setContent(java.lang.@NonNull String text, boolean namespaceProcessing){
return setContent_native_cref_QString_bool_QString_ptr_int_ptr_int_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), text, namespaceProcessing);
}
@QtUninvokable
private native io.qt.xml.QDomDocument.Result setContent_native_cref_QString_bool_QString_ptr_int_ptr_int_ptr(long __this__nativeId, java.lang.String text, boolean namespaceProcessing);
/**
* See QDomDocument:: setContent(QXmlStreamReader*, QDomDocument::ParseOptions)
* @since This function was introduced in Qt 6.5.
* @param reader
* @param options
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@Nullable QXmlStreamReader reader, io.qt.xml.QDomDocument.@NonNull ParseOptions options){
InternalAccess.NativeIdInfo __reader__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(reader);
io.qt.xml.QDomDocument.@NonNull ParseResult __qt_return_value = setContent_native_QXmlStreamReader_ptr_QDomDocument_ParseOptions(QtJambi_LibraryUtilities.internal.nativeId(this), __reader__NativeIdInfo.nativeId(), options.value());
if (__reader__NativeIdInfo.needsReferenceCounting()) {
__rcContent = reader;
}else{
__rcContent = null;
}
return __qt_return_value;
}
@QtUninvokable
private native io.qt.xml.QDomDocument.ParseResult setContent_native_QXmlStreamReader_ptr_QDomDocument_ParseOptions(long __this__nativeId, long reader, int options);
/**
* See QDomDocument:: setContent(QXmlStreamReader*, bool, QString*, int*, int*)
* @param reader
* @param namespaceProcessing
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@StrictNonNull Result setContent(io.qt.core.@Nullable QXmlStreamReader reader, boolean namespaceProcessing){
InternalAccess.NativeIdInfo __reader__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(reader);
io.qt.xml.QDomDocument.Result __qt_return_value = setContent_native_QXmlStreamReader_ptr_bool_QString_ptr_int_ptr_int_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __reader__NativeIdInfo.nativeId(), namespaceProcessing);
if (__reader__NativeIdInfo.needsReferenceCounting()) {
__rcContent = reader;
}else{
__rcContent = null;
}
return __qt_return_value;
}
@QtUninvokable
private native io.qt.xml.QDomDocument.Result setContent_native_QXmlStreamReader_ptr_bool_QString_ptr_int_ptr_int_ptr(long __this__nativeId, long reader, boolean namespaceProcessing);
/**
* See QDomDocument:: setContent<void>(QByteArray, QDomDocument::ParseOptions)
* @since This function was introduced in Qt 6.5.
* @param data
* @param options
* @return
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@NonNull QByteArray data, io.qt.xml.QDomDocument.@NonNull ParseOptions options){
return setContent_native_cref_QByteArray_QDomDocument_ParseOptions(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), options.value());
}
@QtUninvokable
private native io.qt.xml.QDomDocument.ParseResult setContent_native_cref_QByteArray_QDomDocument_ParseOptions(long __this__nativeId, long data, int options);
/**
* See QDomDocument:: toByteArray(int)const
* @param indent
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray toByteArray(int indent){
return toByteArray_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indent);
}
@QtUninvokable
private native io.qt.core.QByteArray toByteArray_native_int_constfct(long __this__nativeId, int indent);
/**
* See QDomDocument:: toString(int)const
* @param indent
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String toString(int indent){
return toString_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), indent);
}
@QtUninvokable
private native java.lang.String toString_native_int_constfct(long __this__nativeId, int indent);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDomDocument(QPrivateConstructor p) { super(p); }
public static final class Result {
private Result(boolean success, String errorMessage, int errorLine, int errorColumn) {
this.success = success;
this.errorMessage = errorMessage;
this.errorLine = errorLine;
this.errorColumn = errorColumn;
}
public final boolean success;
public final String errorMessage;
public final int errorLine;
public final int errorColumn;
}
/**
* Creates and returns a copy of this object.
See QDomDocument:: QDomDocument(QDomDocument)
*/
@QtUninvokable
@Override
public QDomDocument clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QDomDocument clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #setContent(java.lang.String, io.qt.xml.QDomDocument.ParseOptions)}
* with options = new io.qt.xml.QDomDocument.ParseOptions(0)
.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(java.lang.@NonNull String data) {
return setContent(data, new io.qt.xml.QDomDocument.ParseOptions(0));
}
/**
* Overloaded function for {@link #setContent(java.lang.String, io.qt.xml.QDomDocument.ParseOptions)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(java.lang.@NonNull String data, io.qt.xml.QDomDocument.@NonNull ParseOption @NonNull... options) {
return setContent(data, new io.qt.xml.QDomDocument.ParseOptions(options));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QByteArray, boolean)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@StrictNonNull Result setContent(byte @NonNull[] text, boolean namespaceProcessing) {
return setContent(new io.qt.core.QByteArray(text), namespaceProcessing);
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QIODevice, io.qt.xml.QDomDocument.ParseOptions)}
* with options = new io.qt.xml.QDomDocument.ParseOptions(0)
.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@Nullable QIODevice device) {
return setContent(device, new io.qt.xml.QDomDocument.ParseOptions(0));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QIODevice, io.qt.xml.QDomDocument.ParseOptions)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@Nullable QIODevice device, io.qt.xml.QDomDocument.@NonNull ParseOption @NonNull... options) {
return setContent(device, new io.qt.xml.QDomDocument.ParseOptions(options));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QXmlStreamReader, io.qt.xml.QDomDocument.ParseOptions)}
* with options = new io.qt.xml.QDomDocument.ParseOptions(0)
.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@Nullable QXmlStreamReader reader) {
return setContent(reader, new io.qt.xml.QDomDocument.ParseOptions(0));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QXmlStreamReader, io.qt.xml.QDomDocument.ParseOptions)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@Nullable QXmlStreamReader reader, io.qt.xml.QDomDocument.@NonNull ParseOption @NonNull... options) {
return setContent(reader, new io.qt.xml.QDomDocument.ParseOptions(options));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QByteArray, io.qt.xml.QDomDocument.ParseOptions)}
* with options = new io.qt.xml.QDomDocument.ParseOptions(0)
.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@NonNull QByteArray data) {
return setContent(data, new io.qt.xml.QDomDocument.ParseOptions(0));
}
/**
* Overloaded function for {@link #setContent(byte[], io.qt.xml.QDomDocument.ParseOptions)}
* with options = new io.qt.xml.QDomDocument.ParseOptions(0)
.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(byte @NonNull[] data) {
return setContent(data, new io.qt.xml.QDomDocument.ParseOptions(0));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QByteArray, io.qt.xml.QDomDocument.ParseOptions)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(byte @NonNull[] data, io.qt.xml.QDomDocument.@NonNull ParseOptions options) {
return setContent(new io.qt.core.QByteArray(data), options);
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QByteArray, io.qt.xml.QDomDocument.ParseOptions)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(io.qt.core.@NonNull QByteArray data, io.qt.xml.QDomDocument.@NonNull ParseOption @NonNull... options) {
return setContent(data, new io.qt.xml.QDomDocument.ParseOptions(options));
}
/**
* Overloaded function for {@link #setContent(io.qt.core.QByteArray, io.qt.xml.QDomDocument.ParseOptions)}.
*/
@QtUninvokable
public final io.qt.xml.QDomDocument.@NonNull ParseResult setContent(byte @NonNull[] data, io.qt.xml.QDomDocument.@NonNull ParseOption @NonNull... options) {
return setContent(new io.qt.core.QByteArray(data), new io.qt.xml.QDomDocument.ParseOptions(options));
}
/**
* Overloaded function for {@link #toByteArray(int)}
* with indent = 1
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray toByteArray() {
return toByteArray((int)1);
}
/**
* Overloaded function for {@link #toString(int)}
* with indent = 1
.
*/
@QtUninvokable
public final java.lang.@NonNull String toString() {
return toString((int)1);
}
}