Java Doc for LiteralLabel.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » graph » impl » 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 » Jena 2.5.5 » com.hp.hpl.jena.graph.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.graph.impl.LiteralLabel

LiteralLabel
final public class LiteralLabel (Code)
Represents the "contents" of a Node_Literal. These contents comprise a lexical form, an optional language tag, and optional datatype structure and a value.
author:
   Jeremy Carroll and Dave Reynolds



Constructor Summary
public  LiteralLabel(String lex, String lang)
     Build a plain literal label from its lexical form.
public  LiteralLabel(Object value, String lang, RDFDatatype dtype)
     Build a typed literal label from its value form.
public  LiteralLabel(String lex, Object value, String lang, RDFDatatype dtype)
     Build a typed literal label supplying both value and lexical form. The caller guarantees that the lexical form is legal, and the value corresponds.
public  LiteralLabel(Object value)
     Build a typed literal label from its value form using whatever datatype is currently registered as the the default representation for this java class.
public  LiteralLabel(String s, String lg, boolean xml)
     Old style constructor.

Method Summary
public static  LiteralLabelcreateLiteralLabel(String lex, String lang, RDFDatatype dtype)
    
public  booleanequals(Object other)
     Answer true iff this literal is syntactically equal to other.
public  RDFDatatypegetDatatype()
     Answer the datatype of this literal, null if it is untyped.
public  StringgetDatatypeURI()
     Answer the datatype URI of this literal, null if it untyped.
public  intgetDefaultHashcode()
     Answer the default hash value, suitable for datatypes which have values which support hashCode() naturally: it is derived from its value if it is well-formed and otherwise from its lexical form.
public  ObjectgetIndexingValue()
    
public  StringgetLexicalForm()
     Answer the lexical form of this literal, constructing it on-the-fly (and remembering it) if necessary.
public  ObjectgetValue()
     Answer a suitable instance of a Java class representing this literal's value.
public  inthashCode()
     Answer the hashcode of this literal, derived from its value if it's well-formed and otherwise its lexical form.
public  booleanisWellFormed()
     Answer truee iff this is a well-formed literal.
public  booleanisXML()
     Answer true iff this is a well-formed XML literal.
public  Stringlanguage()
     Answer the language associated with this literal (the empty string if there's no language).
protected  voidnormalize()
     Normalize the literal.
public  booleansameValueAs(LiteralLabel other)
     Answer true iff this literal represents the same (abstract) value as the other one.
public  StringtoString(boolean quoting)
     Answer a human-acceptable representation of this literal value. This is NOT intended for a machine-processed result.
public  StringtoString()
    


Constructor Detail
LiteralLabel
public LiteralLabel(String lex, String lang)(Code)
Build a plain literal label from its lexical form.
Parameters:
  lex - the lexical form of the literal
Parameters:
  lang - the optional language tag, only relevant for plain literals



LiteralLabel
public LiteralLabel(Object value, String lang, RDFDatatype dtype) throws DatatypeFormatException(Code)
Build a typed literal label from its value form. If the value is a string we assume this is inteded to be a lexical form after all.
Parameters:
  value - the value of the literal
Parameters:
  lang - the optional language tag, only relevant for plain literals
Parameters:
  dtype - the type of the literal, null for old style "plain" literals



LiteralLabel
public LiteralLabel(String lex, Object value, String lang, RDFDatatype dtype)(Code)
Build a typed literal label supplying both value and lexical form. The caller guarantees that the lexical form is legal, and the value corresponds.
Parameters:
  lex - the lexical form of the literal
Parameters:
  value - the value of the literal
Parameters:
  lang - the optional language tag, only relevant for plain literals
Parameters:
  dtype - the type of the literal, null for old style "plain" literals



LiteralLabel
public LiteralLabel(Object value)(Code)
Build a typed literal label from its value form using whatever datatype is currently registered as the the default representation for this java class. No language tag is supplied.
Parameters:
  value - the literal value to encapsulate



LiteralLabel
public LiteralLabel(String s, String lg, boolean xml)(Code)
Old style constructor. Creates either a plain literal or an XMLLiteral.
Parameters:
  xml - If true then s is exclusive canonical XML of type rdf:XMLLiteral, and no checking will be invoked.




Method Detail
createLiteralLabel
public static LiteralLabel createLiteralLabel(String lex, String lang, RDFDatatype dtype) throws DatatypeFormatException(Code)



equals
public boolean equals(Object other)(Code)
Answer true iff this literal is syntactically equal to other. Note: this is not sameValueAs.



getDatatype
public RDFDatatype getDatatype()(Code)
Answer the datatype of this literal, null if it is untyped.



getDatatypeURI
public String getDatatypeURI()(Code)
Answer the datatype URI of this literal, null if it untyped.



getDefaultHashcode
public int getDefaultHashcode()(Code)
Answer the default hash value, suitable for datatypes which have values which support hashCode() naturally: it is derived from its value if it is well-formed and otherwise from its lexical form.



getIndexingValue
public Object getIndexingValue()(Code)
Answer the value used to index this literal TODO Consider pushing indexing decisions down to the datatype



getLexicalForm
public String getLexicalForm()(Code)
Answer the lexical form of this literal, constructing it on-the-fly (and remembering it) if necessary.



getValue
public Object getValue() throws DatatypeFormatException(Code)
Answer a suitable instance of a Java class representing this literal's value. May throw an exception if the literal is ill-formed.



hashCode
public int hashCode()(Code)
Answer the hashcode of this literal, derived from its value if it's well-formed and otherwise its lexical form.



isWellFormed
public boolean isWellFormed()(Code)
Answer truee iff this is a well-formed literal.



isXML
public boolean isXML()(Code)
Answer true iff this is a well-formed XML literal.



language
public String language()(Code)
Answer the language associated with this literal (the empty string if there's no language).



normalize
protected void normalize()(Code)
Normalize the literal. If the value is narrower than the current data type (e.g. value is xsd:date but the time is xsd:datetime) it will narrow the type. If the type is narrower than the value then it may normalize the value (e.g. set the mask of an XSDDateTime)



sameValueAs
public boolean sameValueAs(LiteralLabel other)(Code)
Answer true iff this literal represents the same (abstract) value as the other one.



toString
public String toString(boolean quoting)(Code)
Answer a human-acceptable representation of this literal value. This is NOT intended for a machine-processed result.



toString
public String toString()(Code)



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.