~ubuntu-branches/ubuntu/edgy/lasso/edgy

« back to all changes in this revision

Viewing changes to java/NodeList.java

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2005-09-16 02:16:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050916021649-lr5tuka6pfmmks44
Tags: 0.6.2-3ubuntu1
* debian/control: removed hardcoded php dependency, added php:Depends
  substvar
* debian/rules: added phpapiver, added substitution of php:Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.24
 
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
 
 
9
package com.entrouvert.lasso;
 
10
 
 
11
public class NodeList {
 
12
  private long swigCPtr;
 
13
  protected boolean swigCMemOwn;
 
14
 
 
15
  protected NodeList(long cPtr, boolean cMemoryOwn) {
 
16
    swigCMemOwn = cMemoryOwn;
 
17
    swigCPtr = cPtr;
 
18
  }
 
19
 
 
20
  protected static long getCPtr(NodeList obj) {
 
21
    return (obj == null) ? 0 : obj.swigCPtr;
 
22
  }
 
23
 
 
24
  protected void finalize() {
 
25
    delete();
 
26
  }
 
27
 
 
28
  public void delete() {
 
29
    if(swigCPtr != 0 && swigCMemOwn) {
 
30
      swigCMemOwn = false;
 
31
      lassoJNI.delete_NodeList(swigCPtr);
 
32
    }
 
33
    swigCPtr = 0;
 
34
  }
 
35
 
 
36
  public NodeList() {
 
37
    this(lassoJNI.new_NodeList(), true);
 
38
  }
 
39
 
 
40
  public void append(Node item) {
 
41
    lassoJNI.NodeList_append(swigCPtr, Node.getCPtr(item));
 
42
  }
 
43
 
 
44
  public SWIGTYPE_p_void cast() {
 
45
    long cPtr = lassoJNI.NodeList_cast(swigCPtr);
 
46
    return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
 
47
  }
 
48
 
 
49
  public static NodeList frompointer(SWIGTYPE_p_void nodeArray) {
 
50
    long cPtr = lassoJNI.NodeList_frompointer(SWIGTYPE_p_void.getCPtr(nodeArray));
 
51
    return (cPtr == 0) ? null : new NodeList(cPtr, false);
 
52
  }
 
53
 
 
54
  public Node getItem(int index) {
 
55
        long cPtr = lassoJNI.NodeList_getItem(swigCPtr, index);
 
56
        return (cPtr == 0) ? null : (Node) lassoJNI.downcast_node(cPtr);
 
57
}
 
58
 
 
59
  public int length() {
 
60
    return lassoJNI.NodeList_length(swigCPtr);
 
61
  }
 
62
 
 
63
  public void setItem(int index, Node item) {
 
64
    lassoJNI.NodeList_setItem(swigCPtr, index, Node.getCPtr(item));
 
65
  }
 
66
 
 
67
}