|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.util.NodeFactoryExtra
public class NodeFactoryExtra
Various convenience helper methods for converting to and from nodes
| Constructor Summary | |
|---|---|
NodeFactoryExtra()
|
|
| Method Summary | |
|---|---|
static Node |
createLiteralNode(String lex,
String lang,
String datatypeURI)
|
static Node |
dateTimeToNode(Calendar c)
|
static Node |
dateToNode(Calendar c)
|
static Node |
doubleToNode(double value)
|
static Node |
floatToNode(float value)
|
static Node |
intToNode(int integer)
|
static Node |
intToNode(long integer)
|
static double |
nodeToDouble(Node node)
|
static float |
nodeToFloat(Node node)
|
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,
PrefixMap pmap)
Parse a string into a node. |
static Node |
timeToNode(Calendar c)
|
static Node |
todayAsDate()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeFactoryExtra()
| Method Detail |
|---|
public static Node parseNode(String nodeString)
Allows surrounding white space
nodeString - Node string to parse
public static Node parseNode(String nodeString,
PrefixMap pmap)
Allows surrounding white space.
nodeString - Node string to parsepmap - Prefix Map, null to use no prefix mappings
RiotException - Thrown if a valid node cannot be parsed
public static Node createLiteralNode(String lex,
String lang,
String datatypeURI)
public static int nodeToInt(Node node)
public static long nodeToLong(Node node)
public static float nodeToFloat(Node node)
public static double nodeToDouble(Node node)
public static Node intToNode(int integer)
public static Node intToNode(long integer)
public static Node floatToNode(float value)
public static Node doubleToNode(double value)
public static Node dateTimeToNode(Calendar c)
public static Node dateToNode(Calendar c)
public static Node timeToNode(Calendar c)
public static Node nowAsDateTime()
public static Node todayAsDate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||