All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QUrlQuery Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Way to manipulate a key-value pairs in a URL's query

*

Java wrapper for Qt class QUrlQuery

*/ public class QUrlQuery extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QUrlQuery::QUrlQuery()

*/ public QUrlQuery(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QUrlQuery instance); /** *

See QUrlQuery::QUrlQuery(QString)

*/ public QUrlQuery(java.lang.@NonNull String queryString){ super((QPrivateConstructor)null); initialize_native(this, queryString); } private native static void initialize_native(QUrlQuery instance, java.lang.String queryString); /** *

See QUrlQuery::QUrlQuery(QUrl)

*/ public QUrlQuery(io.qt.core.@NonNull QUrl url){ super((QPrivateConstructor)null); initialize_native(this, url); } private native static void initialize_native(QUrlQuery instance, io.qt.core.QUrl url); /** *

See QUrlQuery::QUrlQuery(QUrlQuery)

*/ public QUrlQuery(io.qt.core.@NonNull QUrlQuery other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QUrlQuery instance, io.qt.core.QUrlQuery other); /** *

See QUrlQuery::QUrlQuery(std::initializer_list<std::pair<QString,QString>>)

*/ @SafeVarargs public QUrlQuery(io.qt.core.@NonNull QPair@NonNull ... list){ super((QPrivateConstructor)null); initialize_native(this, list); } private native static void initialize_native(QUrlQuery instance, io.qt.core.QPair[] list); /** *

See QUrlQuery::addQueryItem(QString,QString)

*/ @QtUninvokable public final void addQueryItem(java.lang.@NonNull String key, java.lang.@NonNull String value){ addQueryItem_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), key, value); } @QtUninvokable private native void addQueryItem_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String key, java.lang.String value); /** *

See QUrlQuery::allQueryItemValues(QString,QUrl::ComponentFormattingOptions)const

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList allQueryItemValues(java.lang.@NonNull String key, io.qt.core.QUrl.@NonNull ComponentFormattingOptions encoding){ return allQueryItemValues_native_cref_QString_QUrl_ComponentFormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key, encoding.value()); } @QtUninvokable private native io.qt.core.QStringList allQueryItemValues_native_cref_QString_QUrl_ComponentFormattingOptions_constfct(long __this__nativeId, java.lang.String key, int encoding); /** *

See QUrlQuery::clear()

*/ @QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QUrlQuery::hasQueryItem(QString)const

*/ @QtUninvokable public final boolean hasQueryItem(java.lang.@NonNull String key){ return hasQueryItem_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native boolean hasQueryItem_native_cref_QString_constfct(long __this__nativeId, java.lang.String key); /** *

See QUrlQuery::isDetached()const

*/ @QtUninvokable public final boolean isDetached(){ return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isDetached_native_constfct(long __this__nativeId); /** *

See QUrlQuery::isEmpty()const

*/ @QtUninvokable public final boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QUrlQuery::operator=(QUrlQuery)

*/ @QtUninvokable public final void assign(io.qt.core.@NonNull QUrlQuery other){ assign_native_cref_QUrlQuery(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QUrlQuery(long __this__nativeId, long other); /** *

See QUrlQuery::operator==(QUrlQuery)const

*/ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QUrlQuery other){ return equals_native_cref_QUrlQuery_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean equals_native_cref_QUrlQuery_constfct(long __this__nativeId, long other); /** *

See QUrlQuery::query(QUrl::ComponentFormattingOptions)const

*/ @QtUninvokable public final java.lang.@NonNull String query(io.qt.core.QUrl.@NonNull ComponentFormattingOptions encoding){ return query_native_QUrl_ComponentFormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), encoding.value()); } @QtUninvokable private native java.lang.String query_native_QUrl_ComponentFormattingOptions_constfct(long __this__nativeId, int encoding); /** *

See QUrlQuery::queryItemValue(QString,QUrl::ComponentFormattingOptions)const

*/ @QtUninvokable public final java.lang.@NonNull String queryItemValue(java.lang.@NonNull String key, io.qt.core.QUrl.@NonNull ComponentFormattingOptions encoding){ return queryItemValue_native_cref_QString_QUrl_ComponentFormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key, encoding.value()); } @QtUninvokable private native java.lang.String queryItemValue_native_cref_QString_QUrl_ComponentFormattingOptions_constfct(long __this__nativeId, java.lang.String key, int encoding); /** *

See QUrlQuery::queryItems(QUrl::ComponentFormattingOptions)const

*/ @QtUninvokable public final io.qt.core.@NonNull QList> queryItems(io.qt.core.QUrl.@NonNull ComponentFormattingOptions encoding){ return queryItems_native_QUrl_ComponentFormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), encoding.value()); } @QtUninvokable private native io.qt.core.QList> queryItems_native_QUrl_ComponentFormattingOptions_constfct(long __this__nativeId, int encoding); /** *

See QUrlQuery::queryPairDelimiter()const

*/ @QtUninvokable public final char queryPairDelimiter(){ return queryPairDelimiter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native char queryPairDelimiter_native_constfct(long __this__nativeId); /** *

See QUrlQuery::queryValueDelimiter()const

*/ @QtUninvokable public final char queryValueDelimiter(){ return queryValueDelimiter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native char queryValueDelimiter_native_constfct(long __this__nativeId); /** *

See QUrlQuery::removeAllQueryItems(QString)

*/ @QtUninvokable public final void removeAllQueryItems(java.lang.@NonNull String key){ removeAllQueryItems_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native void removeAllQueryItems_native_cref_QString(long __this__nativeId, java.lang.String key); /** *

See QUrlQuery::removeQueryItem(QString)

*/ @QtUninvokable public final void removeQueryItem(java.lang.@NonNull String key){ removeQueryItem_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native void removeQueryItem_native_cref_QString(long __this__nativeId, java.lang.String key); /** *

See QUrlQuery::setQuery(QString)

*/ @QtUninvokable public final void setQuery(java.lang.@NonNull String queryString){ setQuery_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), queryString); } @QtUninvokable private native void setQuery_native_cref_QString(long __this__nativeId, java.lang.String queryString); /** *

See QUrlQuery::setQueryDelimiters(QChar,QChar)

*/ @QtUninvokable public final void setQueryDelimiters(char valueDelimiter, char pairDelimiter){ setQueryDelimiters_native_QChar_QChar(QtJambi_LibraryUtilities.internal.nativeId(this), valueDelimiter, pairDelimiter); } @QtUninvokable private native void setQueryDelimiters_native_QChar_QChar(long __this__nativeId, char valueDelimiter, char pairDelimiter); /** *

See QUrlQuery::setQueryItems(QList<std::pair<QString,QString>>)

*/ @QtUninvokable public final void setQueryItems(java.util.@NonNull Collection> query){ setQueryItems_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), query); } @QtUninvokable private native void setQueryItems_native_cref_QList(long __this__nativeId, java.util.Collection> query); /** *

See QUrlQuery::swap(QUrlQuery&)

*/ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QUrlQuery other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QUrlQuery(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QUrlQuery(long __this__nativeId, long other); /** *

See QUrlQuery::toString(QUrl::ComponentFormattingOptions)const

*/ @QtUninvokable public final java.lang.@NonNull String toString(io.qt.core.QUrl.@NonNull ComponentFormattingOptions encoding){ return toString_native_QUrl_ComponentFormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), encoding.value()); } @QtUninvokable private native java.lang.String toString_native_QUrl_ComponentFormattingOptions_constfct(long __this__nativeId, int encoding); /** *

See QUrlQuery::defaultQueryPairDelimiter()

*/ public native static char defaultQueryPairDelimiter(); /** *

See QUrlQuery::defaultQueryValueDelimiter()

*/ public native static char defaultQueryValueDelimiter(); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QUrlQuery(QPrivateConstructor p) { super(p); } /** *

See QUrlQuery::operator==(QUrlQuery)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QUrlQuery) { return equals((io.qt.core.QUrlQuery) other); } return false; } /** * Returns the objects's hash code computed by qHash(QUrlQuery). */ @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 QUrlQuery::QUrlQuery(QUrlQuery)

*/ @QtUninvokable @Override public QUrlQuery clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QUrlQuery clone_native(long __this_nativeId); /** *

Overloaded function for {@link #allQueryItemValues(java.lang.String, io.qt.core.QUrl.ComponentFormattingOptions)} * with encoding = new io.qt.core.QUrl.ComponentFormattingOptions(0).

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList allQueryItemValues(java.lang.@NonNull String key) { return allQueryItemValues(key, new io.qt.core.QUrl.ComponentFormattingOptions(0)); } /** *

Overloaded function for {@link #allQueryItemValues(java.lang.String, io.qt.core.QUrl.ComponentFormattingOptions)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList allQueryItemValues(java.lang.@NonNull String key, io.qt.core.QUrl.@NonNull ComponentFormattingOption @NonNull... encoding) { return allQueryItemValues(key, new io.qt.core.QUrl.ComponentFormattingOptions(encoding)); } /** *

Overloaded function for {@link #query(io.qt.core.QUrl.ComponentFormattingOptions)} * with encoding = new io.qt.core.QUrl.ComponentFormattingOptions(0).

*/ @QtUninvokable public final java.lang.@NonNull String query() { return query(new io.qt.core.QUrl.ComponentFormattingOptions(0)); } /** *

Overloaded function for {@link #query(io.qt.core.QUrl.ComponentFormattingOptions)}.

*/ @QtUninvokable public final java.lang.@NonNull String query(io.qt.core.QUrl.@NonNull ComponentFormattingOption @NonNull... encoding) { return query(new io.qt.core.QUrl.ComponentFormattingOptions(encoding)); } /** *

Overloaded function for {@link #queryItemValue(java.lang.String, io.qt.core.QUrl.ComponentFormattingOptions)} * with encoding = new io.qt.core.QUrl.ComponentFormattingOptions(0).

*/ @QtUninvokable public final java.lang.@NonNull String queryItemValue(java.lang.@NonNull String key) { return queryItemValue(key, new io.qt.core.QUrl.ComponentFormattingOptions(0)); } /** *

Overloaded function for {@link #queryItemValue(java.lang.String, io.qt.core.QUrl.ComponentFormattingOptions)}.

*/ @QtUninvokable public final java.lang.@NonNull String queryItemValue(java.lang.@NonNull String key, io.qt.core.QUrl.@NonNull ComponentFormattingOption @NonNull... encoding) { return queryItemValue(key, new io.qt.core.QUrl.ComponentFormattingOptions(encoding)); } /** *

Overloaded function for {@link #queryItems(io.qt.core.QUrl.ComponentFormattingOptions)} * with encoding = new io.qt.core.QUrl.ComponentFormattingOptions(0).

*/ @QtUninvokable public final io.qt.core.@NonNull QList> queryItems() { return queryItems(new io.qt.core.QUrl.ComponentFormattingOptions(0)); } /** *

Overloaded function for {@link #queryItems(io.qt.core.QUrl.ComponentFormattingOptions)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QList> queryItems(io.qt.core.QUrl.@NonNull ComponentFormattingOption @NonNull... encoding) { return queryItems(new io.qt.core.QUrl.ComponentFormattingOptions(encoding)); } /** *

Overloaded function for {@link #toString(io.qt.core.QUrl.ComponentFormattingOptions)} * with encoding = new io.qt.core.QUrl.ComponentFormattingOptions(0).

*/ @QtUninvokable public final java.lang.@NonNull String toString() { return toString(new io.qt.core.QUrl.ComponentFormattingOptions(0)); } /** *

Overloaded function for {@link #toString(io.qt.core.QUrl.ComponentFormattingOptions)}.

*/ @QtUninvokable public final java.lang.@NonNull String toString(io.qt.core.QUrl.@NonNull ComponentFormattingOption @NonNull... encoding) { return toString(new io.qt.core.QUrl.ComponentFormattingOptions(encoding)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy