/[fenfire]/fenfire/org/fenfire/util/RDFUtil.java
ViewVC logotype

Diff of /fenfire/org/fenfire/util/RDFUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mudyc, Mon Jul 7 22:56:06 2003 UTC revision 1.15 by mudyc, Thu Jul 17 16:28:19 2003 UTC
# Line 81  public class RDFUtil { Line 81  public class RDFUtil {
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       */       */

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26