Java Doc for BooleanQueryResultFormat.java in  » RSS-RDF » sesame » org » openrdf » query » resultio » 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.query.resultio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.openrdf.query.resultio.BooleanQueryResultFormat

BooleanQueryResultFormat
public class BooleanQueryResultFormat extends FileFormat (Code)
Represents the concept of a boolean query result serialization format. Boolean query result formats are identified by a BooleanQueryResultFormat.getName() name and can have one or more associated MIME types, zero or more associated file extensions and can specify a (default) character encoding.
author:
   Arjohn Kampman


Field Summary
final public static  BooleanQueryResultFormatSPARQL
     SPARQL Query Results XML Format.
final public static  BooleanQueryResultFormatTEXT
     Plain text encoding using values "true" and "false" (case-insensitive).

Constructor Summary
public  BooleanQueryResultFormat(String name, String mimeType, String fileExt)
     Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g.
public  BooleanQueryResultFormat(String name, String mimeType, Charset charset, String fileExt)
     Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g.
public  BooleanQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions)
     Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g.

Method Summary
public static  BooleanQueryResultFormatforFileName(String fileName)
     Tries to determine the appropriate boolean file format for a file, based on the extension specified in a file name.
Parameters:
  fileName - A file name.
public static  BooleanQueryResultFormatforFileName(String fileName, BooleanQueryResultFormat fallback)
     Tries to determine the appropriate boolean file format for a file, based on the extension specified in a file name.
public static  BooleanQueryResultFormatforMIMEType(String mimeType)
     Tries to determine the appropriate boolean file format based on the a MIME type that describes the content type.
Parameters:
  mimeType - A MIME type, e.g.
public static  BooleanQueryResultFormatforMIMEType(String mimeType, BooleanQueryResultFormat fallback)
     Tries to determine the appropriate boolean file format based on the a MIME type that describes the content type.
public static  BooleanQueryResultFormatregister(String name, String mimeType, String fileExt)
     Registers the specified boolean query result format.
Parameters:
  name - The name of the format, e.g.
public static  voidregister(BooleanQueryResultFormat format)
     Registers the specified boolean query result format.
public static  Collection<BooleanQueryResultFormat>values()
     Returns all known/registered boolean query result formats.

Field Detail
SPARQL
final public static BooleanQueryResultFormat SPARQL(Code)
SPARQL Query Results XML Format.



TEXT
final public static BooleanQueryResultFormat TEXT(Code)
Plain text encoding using values "true" and "false" (case-insensitive).




Constructor Detail
BooleanQueryResultFormat
public BooleanQueryResultFormat(String name, String mimeType, String fileExt)(Code)
Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeType - The MIME type of the format, e.g.application/sparql-results+xml for the SPARQL/XMLformat.
Parameters:
  fileExt - The (default) file extension for the format, e.g. srxfor SPARQL/XML.



BooleanQueryResultFormat
public BooleanQueryResultFormat(String name, String mimeType, Charset charset, String fileExt)(Code)
Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeType - The MIME type of the format, e.g.application/sparql-results+xml for the SPARQL/XMLformat.
Parameters:
  charset - The default character encoding of the format. Specify nullif not applicable.
Parameters:
  fileExt - The (default) file extension for the format, e.g. srxfor SPARQL/XML.



BooleanQueryResultFormat
public BooleanQueryResultFormat(String name, Collection<String> mimeTypes, Charset charset, Collection<String> fileExtensions)(Code)
Creates a new TupleQueryResultFormat object.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeTypes - The MIME types of the format, e.g.application/sparql-results+xml for the SPARQL/XMLformat. The first item in the list is interpreted as the defaultMIME type for the format.
Parameters:
  charset - The default character encoding of the format. Specify nullif not applicable.
Parameters:
  fileExtensions - The format's file extensions, e.g. srx for SPARQL/XMLfiles. The first item in the list is interpreted as the defaultfile extension for the format.




Method Detail
forFileName
public static BooleanQueryResultFormat forFileName(String fileName)(Code)
Tries to determine the appropriate boolean file format for a file, based on the extension specified in a file name.
Parameters:
  fileName - A file name. A TupleQueryResultFormat object if the file extension wasrecognized, or null otherwise.
See Also:   BooleanQueryResultFormat.forFileName(String,BooleanQueryResultFormat)
See Also:   BooleanQueryResultFormat.getFileExtension



forFileName
public static BooleanQueryResultFormat forFileName(String fileName, BooleanQueryResultFormat fallback)(Code)
Tries to determine the appropriate boolean file format for a file, based on the extension specified in a file name. The supplied fallback format will be returned when the file name extension was not recognized.
Parameters:
  fileName - A file name. A TupleQueryResultFormat that matches the file name extension, orthe fallback format if the extension was not recognized.
See Also:   BooleanQueryResultFormat.forFileName(String)
See Also:   BooleanQueryResultFormat.getFileExtension



forMIMEType
public static BooleanQueryResultFormat forMIMEType(String mimeType)(Code)
Tries to determine the appropriate boolean file format based on the a MIME type that describes the content type.
Parameters:
  mimeType - A MIME type, e.g. "application/sparql-results+xml". A TupleQueryResultFormat object if the MIME type was recognized,or null otherwise.
See Also:   BooleanQueryResultFormat.forMIMEType(String,BooleanQueryResultFormat)
See Also:   BooleanQueryResultFormat.getMIMEType



forMIMEType
public static BooleanQueryResultFormat forMIMEType(String mimeType, BooleanQueryResultFormat fallback)(Code)
Tries to determine the appropriate boolean file format based on the a MIME type that describes the content type. The supplied fallback format will be returned when the MIME type was not recognized.
Parameters:
  mimeType - a MIME type, e.g. "application/sparql-results+xml"
Parameters:
  fallback - a fallback TupleQueryResultFormat that will be returned by themethod if no match for the supplied MIME type can be found. A TupleQueryResultFormat that matches the MIME type, or thefallback format if the extension was not recognized.
See Also:   BooleanQueryResultFormat.forMIMEType(String)
See Also:   BooleanQueryResultFormat.getMIMEType



register
public static BooleanQueryResultFormat register(String name, String mimeType, String fileExt)(Code)
Registers the specified boolean query result format.
Parameters:
  name - The name of the format, e.g. "SPARQL/XML".
Parameters:
  mimeType - The MIME type of the format, e.g.application/sparql-results+xml for the SPARQL/XML fileformat.
Parameters:
  fileExt - The (default) file extension for the format, e.g. srxfor SPARQL/XML files.



register
public static void register(BooleanQueryResultFormat format)(Code)
Registers the specified boolean query result format.



values
public static Collection<BooleanQueryResultFormat> values()(Code)
Returns all known/registered boolean query result formats.



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