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

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

public class Utils
extends java.lang.Object

Miscellaneous operations - not query specific


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String calendarToXSDDateString(java.util.Calendar cal)
           
static java.lang.String calendarToXSDDateTimeString(java.util.Calendar cal)
           
static java.lang.String className(java.lang.Object obj)
           
static java.lang.String classShortName(java.lang.Class<?> cls)
           
static boolean nodeIso(com.hp.hpl.jena.graph.Node n1, com.hp.hpl.jena.graph.Node n2, NodeIsomorphismMap isoMap)
           
static java.lang.String nowAsString()
          Return "now" as readable string (date in yyyy/MM/dd format)
static java.lang.String nowAsString(java.lang.String formatString)
           
static java.lang.String nowAsXSDDateTimeString()
           
static boolean quadIso(Quad t1, Quad t2, NodeIsomorphismMap labelMap)
           
static java.lang.String stringForm(java.math.BigDecimal decimal)
           
static java.lang.String stringForm(double d)
           
static java.lang.String stringForm(float f)
           
static java.lang.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 java.lang.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 java.lang.String className(java.lang.Object obj)

classShortName

public static java.lang.String classShortName(java.lang.Class<?> cls)

nowAsXSDDateTimeString

public static java.lang.String nowAsXSDDateTimeString()

todayAsXSDDateString

public static java.lang.String todayAsXSDDateString()

XSDDateTime2String

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

nowAsString

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


nowAsString

public static java.lang.String nowAsString(java.lang.String formatString)

calendarToXSDDateTimeString

public static java.lang.String calendarToXSDDateTimeString(java.util.Calendar cal)

calendarToXSDDateString

public static java.lang.String calendarToXSDDateString(java.util.Calendar cal)

stringForm

public static java.lang.String stringForm(java.math.BigDecimal decimal)

stringForm

public static java.lang.String stringForm(double d)

stringForm

public static java.lang.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)


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.