public class NodeFactoryExtra extends Object
Constructor and Description |
---|
NodeFactoryExtra() |
Modifier and Type | Method and Description |
---|---|
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() |
public static Node parseNode(String nodeString)
Allows surrounding white space
nodeString
- Node string to parsepublic static Node parseNode(String nodeString, PrefixMap pmap)
Allows surrounding white space.
nodeString
- Node string to parsepmap
- Prefix Map, null to use no prefix mappingsRiotException
- Thrown if a valid node cannot be parsedpublic 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 nowAsDateTime()
public static Node todayAsDate()
Licenced under the Apache License, Version 2.0