io.qt.core.QProcessEnvironment Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Holds the environment variables that can be passed to a program
* Java wrapper for Qt class QProcessEnvironment
*/
public class QProcessEnvironment extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QProcessEnvironment::Initialization
*/
public enum Initialization implements QtEnumerator {
/**
* Representing QProcessEnvironment:: InheritFromParent
*/
InheritFromParent(0);
static {
QtJambi_LibraryUtilities.initialize();
}
private Initialization(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Initialization resolve(int value) {
switch (value) {
case 0: return InheritFromParent;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QProcessEnvironment:: QProcessEnvironment()
*/
public QProcessEnvironment(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QProcessEnvironment instance);
/**
* See QProcessEnvironment:: QProcessEnvironment(QProcessEnvironment)
*/
public QProcessEnvironment(io.qt.core.@NonNull QProcessEnvironment other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QProcessEnvironment instance, io.qt.core.QProcessEnvironment other);
/**
* See QProcessEnvironment:: QProcessEnvironment(QProcessEnvironment::Initialization)
*/
public QProcessEnvironment(io.qt.core.QProcessEnvironment.@NonNull Initialization arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QProcessEnvironment instance, io.qt.core.QProcessEnvironment.Initialization arg__1);
/**
* See QProcessEnvironment:: clear()
*/
@QtUninvokable
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clear_native(long __this__nativeId);
/**
* See QProcessEnvironment:: contains(QString)const
*/
@QtUninvokable
public final boolean contains(java.lang.@NonNull String name){
return contains_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native boolean contains_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QProcessEnvironment:: inheritsFromParent()const
*/
@QtUninvokable
public final boolean inheritsFromParent(){
return inheritsFromParent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean inheritsFromParent_native_constfct(long __this__nativeId);
/**
* See QProcessEnvironment:: insert(QProcessEnvironment)
*/
@QtUninvokable
public final void insert(io.qt.core.@NonNull QProcessEnvironment e){
insert_native_cref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void insert_native_cref_QProcessEnvironment(long __this__nativeId, long e);
/**
* See QProcessEnvironment:: insert(QString, QString)
*/
@QtUninvokable
public final void insert(java.lang.@NonNull String name, java.lang.@NonNull String value){
insert_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name, value);
}
@QtUninvokable
private native void insert_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String name, java.lang.String value);
/**
* See QProcessEnvironment:: 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 QProcessEnvironment:: keys()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList keys(){
return keys_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList keys_native_constfct(long __this__nativeId);
/**
* See QProcessEnvironment:: operator=(QProcessEnvironment)
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QProcessEnvironment other){
assign_native_cref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QProcessEnvironment(long __this__nativeId, long other);
/**
* See QProcessEnvironment:: operator==(QProcessEnvironment)const
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QProcessEnvironment other){
return equals_native_cref_QProcessEnvironment_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QProcessEnvironment_constfct(long __this__nativeId, long other);
/**
* See QProcessEnvironment:: remove(QString)
*/
@QtUninvokable
public final void remove(java.lang.@NonNull String name){
remove_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native void remove_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QProcessEnvironment:: swap(QProcessEnvironment&)
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QProcessEnvironment other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QProcessEnvironment(long __this__nativeId, long other);
/**
* See QProcessEnvironment:: toStringList()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList toStringList(){
return toStringList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList toStringList_native_constfct(long __this__nativeId);
/**
* See QProcessEnvironment:: value(QString, QString)const
*/
@QtUninvokable
public final java.lang.@NonNull String value(java.lang.@NonNull String name, java.lang.@NonNull String defaultValue){
return value_native_cref_QString_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, defaultValue);
}
@QtUninvokable
private native java.lang.String value_native_cref_QString_cref_QString_constfct(long __this__nativeId, java.lang.String name, java.lang.String defaultValue);
/**
* Returns the environment of the calling process
* See QProcessEnvironment:: systemEnvironment()
*/
public native static io.qt.core.@NonNull QProcessEnvironment systemEnvironment();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QProcessEnvironment(QPrivateConstructor p) { super(p); }
/**
* See QProcessEnvironment:: operator==(QProcessEnvironment)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QProcessEnvironment) {
return equals((io.qt.core.QProcessEnvironment) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QProcessEnvironment)
.
*/
@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 QProcessEnvironment:: QProcessEnvironment(QProcessEnvironment)
*/
@QtUninvokable
@Override
public QProcessEnvironment clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QProcessEnvironment clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #value(java.lang.String, java.lang.String)}
* with defaultValue = (String)null
.
*/
@QtUninvokable
public final java.lang.@NonNull String value(java.lang.@NonNull String name) {
return value(name, (String)null);
}
}