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

io.realm.kotlin.internal.interop.realm_property_info_t Maven / Gradle / Ivy

Go to download

Wrapper for interacting with Realm Kotlin native code from the JVM. This artifact is not supposed to be consumed directly, but through 'io.realm.kotlin:gradle-plugin:3.0.0' instead.

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.2.1
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package io.realm.kotlin.internal.interop;

public class realm_property_info_t {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected realm_property_info_t(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(realm_property_info_t obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected static long swigRelease(realm_property_info_t obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
    delete();
}

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        realmcJNI.delete_realm_property_info_t(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setName(String value) {
    realmcJNI.realm_property_info_t_name_set(swigCPtr, this, value);
  }

  public String getName() {
    return realmcJNI.realm_property_info_t_name_get(swigCPtr, this);
  }

  public void setPublic_name(String value) {
    realmcJNI.realm_property_info_t_public_name_set(swigCPtr, this, value);
  }

  public String getPublic_name() {
    return realmcJNI.realm_property_info_t_public_name_get(swigCPtr, this);
  }

  public void setType(int value) {
    realmcJNI.realm_property_info_t_type_set(swigCPtr, this, value);
  }

  public int getType() {
    return realmcJNI.realm_property_info_t_type_get(swigCPtr, this);
  }

  public void setCollection_type(int value) {
    realmcJNI.realm_property_info_t_collection_type_set(swigCPtr, this, value);
  }

  public int getCollection_type() {
    return realmcJNI.realm_property_info_t_collection_type_get(swigCPtr, this);
  }

  public void setLink_target(String value) {
    realmcJNI.realm_property_info_t_link_target_set(swigCPtr, this, value);
  }

  public String getLink_target() {
    return realmcJNI.realm_property_info_t_link_target_get(swigCPtr, this);
  }

  public void setLink_origin_property_name(String value) {
    realmcJNI.realm_property_info_t_link_origin_property_name_set(swigCPtr, this, value);
  }

  public String getLink_origin_property_name() {
    return realmcJNI.realm_property_info_t_link_origin_property_name_get(swigCPtr, this);
  }

  public void setKey(long value) {
    realmcJNI.realm_property_info_t_key_set(swigCPtr, this, value);
  }

  public long getKey() {
    return realmcJNI.realm_property_info_t_key_get(swigCPtr, this);
  }

  public void setFlags(int value) {
    realmcJNI.realm_property_info_t_flags_set(swigCPtr, this, value);
  }

  public int getFlags() {
    return realmcJNI.realm_property_info_t_flags_get(swigCPtr, this);
  }

  public realm_property_info_t() {
    this(realmcJNI.new_realm_property_info_t(), true);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy