com.hp.hpl.jena.sparql.util
Class NodeFactory

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.NodeFactory

public class NodeFactory
extends Object


Constructor Summary
NodeFactory()
           
 
Method Summary
static Node createLiteralNode(String lex, String lang, String datatypeURI)
           
static Node floatToNode(float value)
           
static Node intToNode(int integer)
           
static Node intToNode(long integer)
           
static int nodeToInt(Node node)
           
static long nodeToLong(Node node)
           
static Node nowAsDateTime()
           
static Node parseNode(String nodeString)
          Parse a node - with convenience prefix mapping
static Node parseNode(String nodeString, PrefixMapping pmap)
          Parse a string into a node.
static Node todayAsDate()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

public NodeFactory()
Method Detail

parseNode

public static Node parseNode(String nodeString)
Parse a node - with convenience prefix mapping


parseNode

public static Node parseNode(String nodeString,
                             PrefixMapping pmap)
Parse a string into a node. Pass null for the prefix mapping to indicate using no defined mappings


createLiteralNode

public static Node createLiteralNode(String lex,
                                     String lang,
                                     String datatypeURI)

nodeToInt

public static int nodeToInt(Node node)

nodeToLong

public static long nodeToLong(Node node)

intToNode

public static Node intToNode(int integer)

intToNode

public static Node intToNode(long integer)

floatToNode

public static Node floatToNode(float value)

nowAsDateTime

public static Node nowAsDateTime()

todayAsDate

public static Node todayAsDate()


Licenced under the Apache License, Version 2.0