81 |
Integer.toString(val))); |
Integer.toString(val))); |
82 |
} |
} |
83 |
|
|
84 |
|
/** Get int attribute (from a literal). |
85 |
|
*/ |
86 |
|
static public float getFloat(Graph graph, Object node, Object pre) { |
87 |
|
Literal lit = (Literal)graph.find1_11X(node, pre); |
88 |
|
return Float.parseFloat(lit.getTextString() ); |
89 |
|
} |
90 |
|
|
91 |
|
/** Set int attribute (literal). |
92 |
|
*/ |
93 |
|
static public void setFloat(Graph graph, Object node, Object pre, int val) { |
94 |
|
graph.set1_11X(node, pre, |
95 |
|
Nodes.getStringLiteral( |
96 |
|
Float.toString(val))); |
97 |
|
} |
98 |
|
|
99 |
/** Special call for structure linked vocabulary to test if node is linked. |
/** Special call for structure linked vocabulary to test if node is linked. |
100 |
* @see STRUCTLINK |
* @see STRUCTLINK |
101 |
*/ |
*/ |