/* ----------------------------------------------------------------------------
 * 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 SamlAttribute extends SamlAttributeDesignator {
  protected SamlAttribute(long cPtr, boolean cMemoryOwn) {
    super(cPtr, cMemoryOwn);
  }

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

  protected void finalize() {
    delete();
  }

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

  public void setAttributeName(String value) {
    lassoJNI.SamlAttribute_attributeName_set(swigCPtr, value);
  }

  public String getAttributeName() {
    return lassoJNI.SamlAttribute_attributeName_get(swigCPtr);
  }

  public void setAttributeNamespace(String value) {
    lassoJNI.SamlAttribute_attributeNamespace_set(swigCPtr, value);
  }

  public String getAttributeNamespace() {
    return lassoJNI.SamlAttribute_attributeNamespace_get(swigCPtr);
  }

  public void setAttributeValue(NodeList value) {
    lassoJNI.SamlAttribute_attributeValue_set(swigCPtr, NodeList.getCPtr(value));
  }

  public NodeList getAttributeValue() {
    long cPtr = lassoJNI.SamlAttribute_attributeValue_get(swigCPtr);
    return (cPtr == 0) ? null : new NodeList(cPtr, false);
  }

  public SamlAttribute() {
    this(lassoJNI.new_SamlAttribute(), true);
  }

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

}
