XcapSelector.java 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public class XcapSelector {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. protected XcapSelector(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. protected static long getCPtr(XcapSelector obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. tinyWRAPJNI.delete_XcapSelector(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public XcapSelector(XcapStack stack) {
  32. this(tinyWRAPJNI.new_XcapSelector(XcapStack.getCPtr(stack), stack), true);
  33. }
  34. public XcapSelector setAUID(String auid) {
  35. long cPtr = tinyWRAPJNI.XcapSelector_setAUID(swigCPtr, this, auid);
  36. return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
  37. }
  38. public XcapSelector setName(String qname) {
  39. long cPtr = tinyWRAPJNI.XcapSelector_setName(swigCPtr, this, qname);
  40. return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
  41. }
  42. public XcapSelector setAttribute(String qname, String att_qname, String att_value) {
  43. long cPtr = tinyWRAPJNI.XcapSelector_setAttribute(swigCPtr, this, qname, att_qname, att_value);
  44. return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
  45. }
  46. public XcapSelector setPos(String qname, long pos) {
  47. long cPtr = tinyWRAPJNI.XcapSelector_setPos(swigCPtr, this, qname, pos);
  48. return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
  49. }
  50. public XcapSelector setPosAttribute(String qname, long pos, String att_qname, String att_value) {
  51. long cPtr = tinyWRAPJNI.XcapSelector_setPosAttribute(swigCPtr, this, qname, pos, att_qname, att_value);
  52. return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
  53. }
  54. public XcapSelector setNamespace(String prefix, String value) {
  55. long cPtr = tinyWRAPJNI.XcapSelector_setNamespace(swigCPtr, this, prefix, value);
  56. return (cPtr == 0) ? null : new XcapSelector(cPtr, false);
  57. }
  58. public String getString() {
  59. return tinyWRAPJNI.XcapSelector_getString(swigCPtr, this);
  60. }
  61. public void reset() {
  62. tinyWRAPJNI.XcapSelector_reset(swigCPtr, this);
  63. }
  64. }