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

package zxidjava;

public class zx_elem_s {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

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

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      zxidjniJNI.delete_zx_elem_s(swigCPtr);
    }
    swigCPtr = 0;
  }

  public void setG(zx_node_s value) {
    zxidjniJNI.zx_elem_s_g_set(swigCPtr, zx_node_s.getCPtr(value));
  }

  public zx_node_s getG() {
    long cPtr = zxidjniJNI.zx_elem_s_g_get(swigCPtr);
    return (cPtr == 0) ? null : new zx_node_s(cPtr, false);
  }

  public void setKids(zx_elem_s value) {
    zxidjniJNI.zx_elem_s_kids_set(swigCPtr, zx_elem_s.getCPtr(value));
  }

  public zx_elem_s getKids() {
    long cPtr = zxidjniJNI.zx_elem_s_kids_get(swigCPtr);
    return (cPtr == 0) ? null : new zx_elem_s(cPtr, false);
  }

  public void setAny_attr(zx_any_attr_s value) {
    zxidjniJNI.zx_elem_s_any_attr_set(swigCPtr, zx_any_attr_s.getCPtr(value));
  }

  public zx_any_attr_s getAny_attr() {
    long cPtr = zxidjniJNI.zx_elem_s_any_attr_get(swigCPtr);
    return (cPtr == 0) ? null : new zx_any_attr_s(cPtr, false);
  }

  public void setAny_elem(zx_any_elem_s value) {
    zxidjniJNI.zx_elem_s_any_elem_set(swigCPtr, zx_any_elem_s.getCPtr(value));
  }

  public zx_any_elem_s getAny_elem() {
    long cPtr = zxidjniJNI.zx_elem_s_any_elem_get(swigCPtr);
    return (cPtr == 0) ? null : new zx_any_elem_s(cPtr, false);
  }

  public void setXmlns(zx_str value) {
    zxidjniJNI.zx_elem_s_xmlns_set(swigCPtr, zx_str.getCPtr(value));
  }

  public zx_str getXmlns() {
    long cPtr = zxidjniJNI.zx_elem_s_xmlns_get(swigCPtr);
    return (cPtr == 0) ? null : new zx_str(cPtr, false);
  }

  public void setContent(zx_str value) {
    zxidjniJNI.zx_elem_s_content_set(swigCPtr, zx_str.getCPtr(value));
  }

  public zx_str getContent() {
    long cPtr = zxidjniJNI.zx_elem_s_content_get(swigCPtr);
    return (cPtr == 0) ? null : new zx_str(cPtr, false);
  }

  public zx_elem_s() {
    this(zxidjniJNI.new_zx_elem_s(), true);
  }

}
