Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / java / CASCADESamplesJni / TColStd_Array1OfBoolean.java
1 // Java Native Class from Cas.Cade
2 //                     Copyright (C) 1991,1999 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14 //
15
16
17 package CASCADESamplesJni;
18
19 import jcas.Standard_Integer;
20 import jcas.Standard_Boolean;
21
22
23 public class TColStd_Array1OfBoolean extends jcas.Object {
24
25  static {
26     System.loadLibrary("CASCADESamplesJni");
27  }
28             
29 public TColStd_Array1OfBoolean(int Low,int Up) {
30    TColStd_Array1OfBoolean_Create_1(Low,Up);
31 }
32
33 private final native void TColStd_Array1OfBoolean_Create_1(int Low,int Up);
34
35 public TColStd_Array1OfBoolean(boolean Item,int Low,int Up) {
36    TColStd_Array1OfBoolean_Create_2(Item,Low,Up);
37 }
38
39 private final native void TColStd_Array1OfBoolean_Create_2(boolean Item,int Low,int Up);
40
41 native public final void Init(boolean V);
42 native public final void Destroy();
43 native public final boolean IsAllocated();
44 native public final TColStd_Array1OfBoolean Assign(TColStd_Array1OfBoolean Other);
45 native public final int Length();
46 native public final int Lower();
47 native public final int Upper();
48 native public final void SetValue(int Index,boolean Value);
49 native public final boolean Value(int Index);
50 native public final boolean ChangeValue(int Index);
51 public TColStd_Array1OfBoolean() {
52 }
53
54
55
56 public native static void FinalizeValue(long anHID);
57
58 public void finalize() {
59    synchronized(myCasLock) {
60      if ( aVirer != 0 ) FinalizeValue(HID);
61      HID = 0;
62    }
63 }
64
65 }