io.qt.xml.QDomImplementation Maven / Gradle / Ivy
Show all versions of qtjambi-xml Show documentation
package io.qt.xml;
import io.qt.*;
/**
* Information about the features of the DOM implementation
* Java wrapper for Qt class QDomImplementation
*/
public class QDomImplementation extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QDomImplementation::InvalidDataPolicy
*/
public enum InvalidDataPolicy implements QtEnumerator {
/**
* Representing QDomImplementation:: AcceptInvalidChars
*/
AcceptInvalidChars(0),
/**
* Representing QDomImplementation:: DropInvalidChars
*/
DropInvalidChars(1),
/**
* Representing QDomImplementation:: ReturnNullNode
*/
ReturnNullNode(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private InvalidDataPolicy(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull InvalidDataPolicy resolve(int value) {
switch (value) {
case 0: return AcceptInvalidChars;
case 1: return DropInvalidChars;
case 2: return ReturnNullNode;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QDomImplementation:: QDomImplementation()
*/
public QDomImplementation(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QDomImplementation instance);
/**
* See QDomImplementation:: QDomImplementation(QDomImplementation)
*/
public QDomImplementation(io.qt.xml.@NonNull QDomImplementation arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QDomImplementation instance, io.qt.xml.QDomImplementation arg__1);
/**
* See QDomImplementation:: createDocument(QString, QString, QDomDocumentType)
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomDocument createDocument(java.lang.@NonNull String nsURI, java.lang.@NonNull String qName, io.qt.xml.@NonNull QDomDocumentType doctype){
return createDocument_native_cref_QString_cref_QString_cref_QDomDocumentType(QtJambi_LibraryUtilities.internal.nativeId(this), nsURI, qName, QtJambi_LibraryUtilities.internal.checkedNativeId(doctype));
}
@QtUninvokable
private native io.qt.xml.QDomDocument createDocument_native_cref_QString_cref_QString_cref_QDomDocumentType(long __this__nativeId, java.lang.String nsURI, java.lang.String qName, long doctype);
/**
* See QDomImplementation:: createDocumentType(QString, QString, QString)
*/
@QtUninvokable
public final io.qt.xml.@NonNull QDomDocumentType createDocumentType(java.lang.@NonNull String qName, java.lang.@NonNull String publicId, java.lang.@NonNull String systemId){
return createDocumentType_native_cref_QString_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), qName, publicId, systemId);
}
@QtUninvokable
private native io.qt.xml.QDomDocumentType createDocumentType_native_cref_QString_cref_QString_cref_QString(long __this__nativeId, java.lang.String qName, java.lang.String publicId, java.lang.String systemId);
/**
* See QDomImplementation:: hasFeature(QString, QString)const
*/
@QtUninvokable
public final boolean hasFeature(java.lang.@NonNull String feature, java.lang.@NonNull String version){
return hasFeature_native_cref_QString_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), feature, version);
}
@QtUninvokable
private native boolean hasFeature_native_cref_QString_cref_QString_constfct(long __this__nativeId, java.lang.String feature, java.lang.String version);
/**
* See QDomImplementation:: isNull()
*/
@QtUninvokable
public final boolean isNull(){
return isNull_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNull_native(long __this__nativeId);
/**
* See QDomImplementation:: operator=(QDomImplementation)
*/
@QtUninvokable
public final void assign(io.qt.xml.@NonNull QDomImplementation arg__1){
assign_native_cref_QDomImplementation(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void assign_native_cref_QDomImplementation(long __this__nativeId, long arg__1);
/**
* See QDomImplementation:: operator==(QDomImplementation)const
*/
@QtUninvokable
public final boolean equals(io.qt.xml.@NonNull QDomImplementation arg__1){
return equals_native_cref_QDomImplementation_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native boolean equals_native_cref_QDomImplementation_constfct(long __this__nativeId, long arg__1);
/**
* See QDomImplementation:: invalidDataPolicy()
*/
public static io.qt.xml.QDomImplementation.@NonNull InvalidDataPolicy invalidDataPolicy(){
return io.qt.xml.QDomImplementation.InvalidDataPolicy.resolve(invalidDataPolicy_native());
}
private native static int invalidDataPolicy_native();
/**
* See QDomImplementation:: setInvalidDataPolicy(QDomImplementation::InvalidDataPolicy)
*/
public static void setInvalidDataPolicy(io.qt.xml.QDomImplementation.@NonNull InvalidDataPolicy policy){
setInvalidDataPolicy_native_QDomImplementation_InvalidDataPolicy(policy.value());
}
private native static void setInvalidDataPolicy_native_QDomImplementation_InvalidDataPolicy(int policy);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDomImplementation(QPrivateConstructor p) { super(p); }
/**
* See QDomImplementation:: operator==(QDomImplementation)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.xml.QDomImplementation) {
return equals((io.qt.xml.QDomImplementation) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QDomImplementation)
.
*/
@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 QDomImplementation:: QDomImplementation(QDomImplementation)
*/
@QtUninvokable
@Override
public QDomImplementation clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QDomImplementation clone_native(long __this_nativeId);
}