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

package com.entrouvert.lasso;

public class Samlp2AttributeQuery extends Samlp2SubjectQueryAbstract {
  protected Samlp2AttributeQuery(long cPtr, boolean cMemoryOwn) {
    super(cPtr, cMemoryOwn);
  }

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

  protected void finalize() {
    delete();
  }

  public void delete() {
  super.delete();
}

  public void setAttribute(Saml2Attribute value) {
    lassoJNI.Samlp2AttributeQuery_attribute_set(swigCPtr, Saml2Attribute.getCPtr(value));
  }

  public Saml2Attribute getAttribute() {
    long cPtr = lassoJNI.Samlp2AttributeQuery_attribute_get(swigCPtr);
    return (cPtr == 0) ? null : new Saml2Attribute(cPtr, false);
  }

  public void setSubject(Saml2Subject value) {
    lassoJNI.Samlp2AttributeQuery_Subject_set(swigCPtr, Saml2Subject.getCPtr(value));
  }

  public Saml2Subject getSubject() {
    long cPtr = lassoJNI.Samlp2AttributeQuery_Subject_get(swigCPtr);
    return (cPtr == 0) ? null : new Saml2Subject(cPtr, false);
  }

  public void setIssuer(Saml2NameID value) {
    lassoJNI.Samlp2AttributeQuery_issuer_set(swigCPtr, Saml2NameID.getCPtr(value));
  }

  public Saml2NameID getIssuer() {
    long cPtr = lassoJNI.Samlp2AttributeQuery_issuer_get(swigCPtr);
    return (cPtr == 0) ? null : new Saml2NameID(cPtr, false);
  }

  public void setExtensions(Samlp2Extensions value) {
    lassoJNI.Samlp2AttributeQuery_Extensions_set(swigCPtr, Samlp2Extensions.getCPtr(value));
  }

  public Samlp2Extensions getExtensions() {
    long cPtr = lassoJNI.Samlp2AttributeQuery_Extensions_get(swigCPtr);
    return (cPtr == 0) ? null : new Samlp2Extensions(cPtr, false);
  }

  public void setID(String value) {
    lassoJNI.Samlp2AttributeQuery_ID_set(swigCPtr, value);
  }

  public String getID() {
    return lassoJNI.Samlp2AttributeQuery_ID_get(swigCPtr);
  }

  public void setVersion(String value) {
    lassoJNI.Samlp2AttributeQuery_Version_set(swigCPtr, value);
  }

  public String getVersion() {
    return lassoJNI.Samlp2AttributeQuery_Version_get(swigCPtr);
  }

  public void setIssueInstant(String value) {
    lassoJNI.Samlp2AttributeQuery_issueInstant_set(swigCPtr, value);
  }

  public String getIssueInstant() {
    return lassoJNI.Samlp2AttributeQuery_issueInstant_get(swigCPtr);
  }

  public void setDestination(String value) {
    lassoJNI.Samlp2AttributeQuery_Destination_set(swigCPtr, value);
  }

  public String getDestination() {
    return lassoJNI.Samlp2AttributeQuery_Destination_get(swigCPtr);
  }

  public void setConsent(String value) {
    lassoJNI.Samlp2AttributeQuery_Consent_set(swigCPtr, value);
  }

  public String getConsent() {
    return lassoJNI.Samlp2AttributeQuery_Consent_get(swigCPtr);
  }

  public Samlp2AttributeQuery() {
    this(lassoJNI.new_Samlp2AttributeQuery(), true);
  }

  public String dump() {
    return lassoJNI.Samlp2AttributeQuery_dump(swigCPtr);
  }

}
