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

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

public class Utils
extends Object

Miscellaneous operations - not query specific


Constructor Summary
Utils()
           
 
Method Summary
static String calendarToXSDDateString(Calendar cal)
           
static String calendarToXSDDateTimeString(Calendar cal)
           
static String className(Object obj)
           
static String classShortName(Class<?> cls)
           
static boolean nodeIso(com.hp.hpl.jena.graph.Node n1, com.hp.hpl.jena.graph.Node n2, NodeIsomorphismMap isoMap)
           
static String nowAsString()
          Return "now" as readable string (date in yyyy/MM/dd format)
static String nowAsString(String formatString)
           
static String nowAsXSDDateTimeString()
           
static boolean quadIso(Quad t1, Quad t2, NodeIsomorphismMap labelMap)
           
static String stringForm(BigDecimal decimal)
           
static String stringForm(double d)
           
static String stringForm(float f)
           
static String todayAsXSDDateString()
           
static boolean tripleIso(com.hp.hpl.jena.graph.Triple t1, com.hp.hpl.jena.graph.Triple t2, NodeIsomorphismMap labelMap)
           
static boolean triplePathIso(TriplePath tp1, TriplePath tp2, NodeIsomorphismMap isoMap)
           
static String XSDDateTime2String(com.hp.hpl.jena.datatypes.xsd.XSDDateTime xdt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

className

public static String className(Object obj)

classShortName

public static String classShortName(Class<?> cls)

nowAsXSDDateTimeString

public static String nowAsXSDDateTimeString()

todayAsXSDDateString

public static String todayAsXSDDateString()

XSDDateTime2String

public static String XSDDateTime2String(com.hp.hpl.jena.datatypes.xsd.XSDDateTime xdt)

nowAsString

public static String nowAsString()
Return "now" as readable string (date in yyyy/MM/dd format)


nowAsString

public static String nowAsString(String formatString)

calendarToXSDDateTimeString

public static String calendarToXSDDateTimeString(Calendar cal)

calendarToXSDDateString

public static String calendarToXSDDateString(Calendar cal)

stringForm

public static String stringForm(BigDecimal decimal)

stringForm

public static String stringForm(double d)

stringForm

public static String stringForm(float f)

triplePathIso

public static boolean triplePathIso(TriplePath tp1,
                                    TriplePath tp2,
                                    NodeIsomorphismMap isoMap)

tripleIso

public static boolean tripleIso(com.hp.hpl.jena.graph.Triple t1,
                                com.hp.hpl.jena.graph.Triple t2,
                                NodeIsomorphismMap labelMap)

quadIso

public static boolean quadIso(Quad t1,
                              Quad t2,
                              NodeIsomorphismMap labelMap)

nodeIso

public static boolean nodeIso(com.hp.hpl.jena.graph.Node n1,
                              com.hp.hpl.jena.graph.Node n2,
                              NodeIsomorphismMap isoMap)


Licenced under the Apache License, Version 2.0