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


java.lang.Object
   com.hp.hpl.jena.rdf.arp.ARPOptions

ARPOptions
public class ARPOptions implements ARPErrorNumbers(Code)
The interface to set the various options on ARP. User defined implementations of this interface are not supported. This is a class rather than an interface to have better backward compatibilitiy with earlier versions, however constructing instances of this class is deprecated. In addition, accessing the fields of ARPErrorNumbers through this class is not supported. The inheritance of this interface will be removed.
author:
   Jeremy J. Carroll



Constructor Summary
public  ARPOptions()
     Do not use this constructor.

Method Summary
public  ARPOptionscopy()
     Copies this object.
public  booleangetEmbedding()
     True if the embedding flag is set.
public  intgetErrorMode(int eCode)
     Returns the error mode for the given error code.
public  voidsetDefaultErrorMode()
     Resets error mode to the default values: many errors are reported as warnings, and resulting triples are produced.
public  booleansetEmbedding(boolean embed)
     Sets whether the XML document is only RDF, or contains RDF embedded in other XML. The default is non-embedded mode. Embedded mode also matches RDF documents that use the rdf:RDF tag at the top-level. Non-embeded mode matches RDF documents which omit that optional tag, and consist of a single rdf:Description or typed node. To find embedded RDF it is necessary to setEmbedding(true).
Parameters:
  embed - true: Look for embedded RDF; or false: match a typed node or rdf:Description against the whole document (the default).
public  intsetErrorMode(int errno, int mode)
     Sets or gets the error handling mode for a specific error condition. Changes that cannot be honoured are silently ignored. Illegal error numbers may result in an ArrayIndexOutOfBoundsException but are usually ignored. Most conditions are associated with one or more specific resources or literals formed during the parse.
public  voidsetLaxErrorMode()
     As many errors as possible are ignored.
public  voidsetStrictErrorMode()
     This sets strict conformance to the W3C Recommendations.
public  voidsetStrictErrorMode(int nonErrorMode)
     This method detects and prohibits errors according to the W3C Recommendations. For other conditions, such as ARPErrorNumbers.WARN_PROCESSING_INSTRUCTION_IN_RDF , nonErrorMode is used.


Constructor Detail
ARPOptions
public ARPOptions()(Code)
Do not use this constructor. An example of not using this constructor is as follows.
Deprecated usage:
 ARP arp = new ARP();
 ARPOptions options = new ARPOptions();
 

Preferred code:
 ARP arp = new ARP();
 ARPOptions options = arp.getOptions();
 
ARPConfig.getOptions




Method Detail
copy
public ARPOptions copy()(Code)
Copies this object. A copy.



getEmbedding
public boolean getEmbedding()(Code)
True if the embedding flag is set. Indicates that the parser should look for rdf:RDF element, rather than treat the whole file as an RDF/XML document (possibly without rdf:RDF element).



getErrorMode
public int getErrorMode(int eCode)(Code)
Returns the error mode for the given error code.
Parameters:
  eCode - One of ARPErrorNumbers.EM_IGNORE,ARPErrorNumbers.EM_WARNING,ARPErrorNumbers.EM_ERROR,ARPErrorNumbers.EM_FATAL



setDefaultErrorMode
public void setDefaultErrorMode()(Code)
Resets error mode to the default values: many errors are reported as warnings, and resulting triples are produced.



setEmbedding
public boolean setEmbedding(boolean embed)(Code)
Sets whether the XML document is only RDF, or contains RDF embedded in other XML. The default is non-embedded mode. Embedded mode also matches RDF documents that use the rdf:RDF tag at the top-level. Non-embeded mode matches RDF documents which omit that optional tag, and consist of a single rdf:Description or typed node. To find embedded RDF it is necessary to setEmbedding(true).
Parameters:
  embed - true: Look for embedded RDF; or false: match a typed node or rdf:Description against the whole document (the default). Previous setting.



setErrorMode
public int setErrorMode(int errno, int mode)(Code)
Sets or gets the error handling mode for a specific error condition. Changes that cannot be honoured are silently ignored. Illegal error numbers may result in an ArrayIndexOutOfBoundsException but are usually ignored. Most conditions are associated with one or more specific resources or literals formed during the parse. Triples involving resource or literal associated with an error condition are not produced. The precise definition of 'associated with' is deliberately undefined, and may change in future releases. This method can be used to downgrade an error condition to a warning, or to upgrade a warning to an error. Such a change modifies which triples are produced.

When the condition is a violation of the RDF/XML Syntax (Revised) Recommendations, and the error mode is ARPErrorNumbers.EM_IGNORE or ARPErrorNumbers.EM_WARNING , the precise rules which ARP uses to generate triples for such ill-formed input are not defined by any standard and are subject to change with future releases. For input involving no errors, ARP creates triples in accordance with the RDF/XML Syntax Revised Recommendation.

The mode can have one of the following four values.

ARPErrorNumbers.EM_IGNORE
Ignore this condition. Produce triples.
ARPErrorNumbers.EM_WARNING
Invoke ErrorHandler.warning() for this condition. Produce triples.
ARPErrorNumbers.EM_ERROR
Invoke ErrorHandler.error() for this condition. Do not produce triples.
ARPErrorNumbers.EM_FATAL
Aborts parse and invokes ErrorHandler.fatalError() for this condition. Do not produce triples. In unusual situations, a few further warnings and errors may be reported.

Parameters:
  errno - The specific error condition to change.
Parameters:
  mode - The new mode for this condition. The old error mode for this condition.



setLaxErrorMode
public void setLaxErrorMode()(Code)
As many errors as possible are ignored. As many triples as possible are produced.



setStrictErrorMode
public void setStrictErrorMode()(Code)
This sets strict conformance to the W3C Recommendations.



setStrictErrorMode
public void setStrictErrorMode(int nonErrorMode)(Code)
This method detects and prohibits errors according to the W3C Recommendations. For other conditions, such as ARPErrorNumbers.WARN_PROCESSING_INSTRUCTION_IN_RDF , nonErrorMode is used.
Parameters:
  nonErrorMode - The way of treating non-error conditions.



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.