Adjusting testing cases for current state of OCCT
[occt.git] / samples / java / java / CASCADESamplesJni / Aspect_TypeMapEntry.java
CommitLineData
7fd59977 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
17package CASCADESamplesJni;
18
19import jcas.Standard_Integer;
20import CASCADESamplesJni.Aspect_LineStyle;
21import jcas.Standard_Boolean;
22
23
24public class Aspect_TypeMapEntry extends jcas.Object {
25
26 static {
27 System.loadLibrary("CASCADESamplesJni");
28 }
29
30public Aspect_TypeMapEntry() {
31 Aspect_TypeMapEntry_Create_1();
32}
33
34private final native void Aspect_TypeMapEntry_Create_1();
35
36public Aspect_TypeMapEntry(int index,Aspect_LineStyle style) {
37 Aspect_TypeMapEntry_Create_2(index,style);
38}
39
40private final native void Aspect_TypeMapEntry_Create_2(int index,Aspect_LineStyle style);
41
42public Aspect_TypeMapEntry(Aspect_TypeMapEntry entry) {
43 Aspect_TypeMapEntry_Create_3(entry);
44}
45
46private final native void Aspect_TypeMapEntry_Create_3(Aspect_TypeMapEntry entry);
47
48final public void SetValue(int index,Aspect_LineStyle style) {
49 Aspect_TypeMapEntry_SetValue_1(index,style);
50}
51
52private final native void Aspect_TypeMapEntry_SetValue_1(int index,Aspect_LineStyle style);
53
54final public void SetValue(Aspect_TypeMapEntry entry) {
55 Aspect_TypeMapEntry_SetValue_2(entry);
56}
57
58private final native void Aspect_TypeMapEntry_SetValue_2(Aspect_TypeMapEntry entry);
59
60native public final void SetType(Aspect_LineStyle Style);
61native public final Aspect_LineStyle Type();
62native public final void SetIndex(int index);
63native public final int Index();
64native public final void Free();
65native public final boolean IsAllocated();
66native public final void Dump();
67
68
69public native static void FinalizeValue(long anHID);
70
71public void finalize() {
72 synchronized(myCasLock) {
73 if ( aVirer != 0 ) FinalizeValue(HID);
74 HID = 0;
75 }
76}
77
78}