Java Doc for LiteralUtil.java in  » RSS-RDF » sesame » org » openrdf » model » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » sesame » org.openrdf.model.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openrdf.model.util.LiteralUtil

LiteralUtil
public class LiteralUtil (Code)
Various utility methods related to Literal .
author:
   Arjohn Kampman




Method Summary
public static  booleangetBooleanValue(Literal l, boolean fallback)
     Gets the boolean value of the supplied literal.
public static  booleangetBooleanValue(Value v, boolean fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,boolean) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  bytegetByteValue(Literal l, byte fallback)
     Gets the byte value of the supplied literal.
public static  bytegetByteValue(Value v, byte fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,byte) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  XMLGregorianCalendargetCalendarValue(Literal l, XMLGregorianCalendar fallback)
     Gets the calendar value of the supplied literal.
public static  XMLGregorianCalendargetCalendarValue(Value v, XMLGregorianCalendar fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,XMLGregorianCalendar) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  BigDecimalgetDecimalValue(Literal l, BigDecimal fallback)
     Gets the decimal value of the supplied literal.
public static  BigDecimalgetDecimalValue(Value v, BigDecimal fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,BigDecimal) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  doublegetDoubleValue(Literal l, double fallback)
     Gets the double value of the supplied literal.
public static  doublegetDoubleValue(Value v, double fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,double) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  floatgetFloatValue(Literal l, float fallback)
     Gets the float value of the supplied literal.
public static  floatgetFloatValue(Value v, float fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,float) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  intgetIntValue(Literal l, int fallback)
     Gets the int value of the supplied literal.
public static  intgetIntValue(Value v, int fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,int) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  BigIntegergetIntegerValue(Literal l, BigInteger fallback)
     Gets the integer value of the supplied literal.
public static  BigIntegergetIntegerValue(Value v, BigInteger fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,BigInteger) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  StringgetLabel(Literal l, String fallback)
     Gets the label of the supplied literal.
public static  StringgetLabel(Value v, String fallback)
     Returns the result of LiteralUtil.getLabel(Literal,String) getLabel((Literal)v, fallback in case the supplied value is a literal, returns the fallback value otherwise.
public static  longgetLongValue(Literal l, long fallback)
     Gets the long value of the supplied literal.
public static  longgetLongValue(Value v, long fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,long) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.
public static  shortgetShortValue(Literal l, short fallback)
     Gets the short value of the supplied literal.
public static  shortgetShortValue(Value v, short fallback)
     Returns the result of LiteralUtil.getByteValue(Literal,short) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



Method Detail
getBooleanValue
public static boolean getBooleanValue(Literal l, boolean fallback)(Code)
Gets the boolean value of the supplied literal. The fallback value is returned in case Literal.booleanValue throws a NumberFormatException .
Parameters:
  l - The literal to get the boolean value for.
Parameters:
  fallback - The value to fall back to in case no boolean value could gottenfrom the literal. Either the literal's boolean value, or the fallback value.



getBooleanValue
public static boolean getBooleanValue(Value v, boolean fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,boolean) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getByteValue
public static byte getByteValue(Literal l, byte fallback)(Code)
Gets the byte value of the supplied literal. The fallback value is returned in case Literal.byteValue throws a NumberFormatException .
Parameters:
  l - The literal to get the byte value for.
Parameters:
  fallback - The value to fall back to in case no byte value could gotten fromthe literal. Either the literal's byte value, or the fallback value.



getByteValue
public static byte getByteValue(Value v, byte fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,byte) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getCalendarValue
public static XMLGregorianCalendar getCalendarValue(Literal l, XMLGregorianCalendar fallback)(Code)
Gets the calendar value of the supplied literal. The fallback value is returned in case Literal.calendarValue throws a NumberFormatException .
Parameters:
  l - The literal to get the calendar value for.
Parameters:
  fallback - The value to fall back to in case no calendar value could gottenfrom the literal. Either the literal's calendar value, or the fallback value.



getCalendarValue
public static XMLGregorianCalendar getCalendarValue(Value v, XMLGregorianCalendar fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,XMLGregorianCalendar) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getDecimalValue
public static BigDecimal getDecimalValue(Literal l, BigDecimal fallback)(Code)
Gets the decimal value of the supplied literal. The fallback value is returned in case Literal.decimalValue throws a NumberFormatException .
Parameters:
  l - The literal to get the decimal value for.
Parameters:
  fallback - The value to fall back to in case no decimal value could gottenfrom the literal. Either the literal's decimal value, or the fallback value.



getDecimalValue
public static BigDecimal getDecimalValue(Value v, BigDecimal fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,BigDecimal) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getDoubleValue
public static double getDoubleValue(Literal l, double fallback)(Code)
Gets the double value of the supplied literal. The fallback value is returned in case Literal.doubleValue throws a NumberFormatException .
Parameters:
  l - The literal to get the double value for.
Parameters:
  fallback - The value to fall back to in case no double value could gotten fromthe literal. Either the literal's double value, or the fallback value.



getDoubleValue
public static double getDoubleValue(Value v, double fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,double) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getFloatValue
public static float getFloatValue(Literal l, float fallback)(Code)
Gets the float value of the supplied literal. The fallback value is returned in case Literal.floatValue throws a NumberFormatException .
Parameters:
  l - The literal to get the float value for.
Parameters:
  fallback - The value to fall back to in case no float value could gotten fromthe literal. Either the literal's float value, or the fallback value.



getFloatValue
public static float getFloatValue(Value v, float fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,float) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getIntValue
public static int getIntValue(Literal l, int fallback)(Code)
Gets the int value of the supplied literal. The fallback value is returned in case Literal.intValue throws a NumberFormatException .
Parameters:
  l - The literal to get the int value for.
Parameters:
  fallback - The value to fall back to in case no int value could gotten fromthe literal. Either the literal's int value, or the fallback value.



getIntValue
public static int getIntValue(Value v, int fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,int) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getIntegerValue
public static BigInteger getIntegerValue(Literal l, BigInteger fallback)(Code)
Gets the integer value of the supplied literal. The fallback value is returned in case Literal.integerValue throws a NumberFormatException .
Parameters:
  l - The literal to get the integer value for.
Parameters:
  fallback - The value to fall back to in case no integer value could gottenfrom the literal. Either the literal's integer value, or the fallback value.



getIntegerValue
public static BigInteger getIntegerValue(Value v, BigInteger fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,BigInteger) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getLabel
public static String getLabel(Literal l, String fallback)(Code)
Gets the label of the supplied literal. The fallback value is returned in case the supplied literal is null.
Parameters:
  l - The literal to get the label for.
Parameters:
  fallback - The value to fall back to in case the supplied literal isnull. Either the literal's label, or the fallback value.



getLabel
public static String getLabel(Value v, String fallback)(Code)
Returns the result of LiteralUtil.getLabel(Literal,String) getLabel((Literal)v, fallback in case the supplied value is a literal, returns the fallback value otherwise.



getLongValue
public static long getLongValue(Literal l, long fallback)(Code)
Gets the long value of the supplied literal. The fallback value is returned in case Literal.longValue throws a NumberFormatException .
Parameters:
  l - The literal to get the long value for.
Parameters:
  fallback - The value to fall back to in case no long value could gotten fromthe literal. Either the literal's long value, or the fallback value.



getLongValue
public static long getLongValue(Value v, long fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,long) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



getShortValue
public static short getShortValue(Literal l, short fallback)(Code)
Gets the short value of the supplied literal. The fallback value is returned in case Literal.shortValue throws a NumberFormatException .
Parameters:
  l - The literal to get the short value for.
Parameters:
  fallback - The value to fall back to in case no short value could gotten fromthe literal. Either the literal's short value, or the fallback value.



getShortValue
public static short getShortValue(Value v, short fallback)(Code)
Returns the result of LiteralUtil.getByteValue(Literal,short) getByteValue((Literal)value, fallback) in case the supplied value is a literal, returns the fallback value otherwise.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.