Loading...
Searching...
No Matches
LocationBinding.java
Go to the documentation of this file.
1package com.navigine.idl.java.internal;
2
3import com.navigine.common.NativeObject;
4import com.navigine.idl.java.Category;
5import com.navigine.idl.java.ElevationGraph;
6import com.navigine.idl.java.Location;
7import com.navigine.idl.java.Sublocation;
8import java.util.ArrayList;
9
14public final class LocationBinding extends Location
15{
16 private final NativeObject nativeObject;
17
18 LocationBinding(NativeObject nativeObject)
19 {
20 this.nativeObject = nativeObject;
21 }
22
23 @Override
24 public native boolean isValid();
25
26 // Location methods
27
28 @Override
30 {
31 return native_getElevationGraph(tag);
32 }
33 private native ElevationGraph native_getElevationGraph(String tag);
34
35 @Override
36 public ArrayList<String> getGraphTags()
37 {
38 return native_getGraphTags();
39 }
40 private native ArrayList<String> native_getGraphTags();
41
42 @Override
44 {
45 return native_getSublocationById(id);
46 }
47 private native Sublocation native_getSublocationById(int id);
48
49 @Override
51 {
52 return native_getCategoryById(id);
53 }
54 private native Category native_getCategoryById(int id);
55
56 @Override
57 public int getId()
58 {
59 return native_getId();
60 }
61 private native int native_getId();
62
63 @Override
64 public int getVersion()
65 {
66 return native_getVersion();
67 }
68 private native int native_getVersion();
69
70 @Override
71 public String getName()
72 {
73 return native_getName();
74 }
75 private native String native_getName();
76
77 @Override
78 public String getDescript()
79 {
80 return native_getDescript();
81 }
82 private native String native_getDescript();
83
84 @Override
85 public ArrayList<Category> getCategories()
86 {
87 return native_getCategories();
88 }
89 private native ArrayList<Category> native_getCategories();
90
91 @Override
92 public ArrayList<Sublocation> getSublocations()
93 {
94 return native_getSublocations();
95 }
96 private native ArrayList<Sublocation> native_getSublocations();
97
98 @Override
99 public boolean getModified()
100 {
101 return native_getModified();
102 }
103 private native boolean native_getModified();
104}