|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.rdf.arp.ARPOptions
public class ARPOptions
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.
Field Summary |
---|
Method Summary | |
---|---|
ARPOptions |
copy()
Internal use only. |
static ARPOptions |
createNewOptions()
Internal use only |
boolean |
getEmbedding()
True if the embedding flag is set. |
int |
getErrorMode(int eCode)
Returns the error mode for the given error code. |
IRIFactory |
getIRIFactory()
Get the IRI factory (and hence the IRI checking rules) |
static IRIFactory |
getIRIFactoryGlobal()
Get the default (global) IRI factory (and hence the IRI checking rules) |
void |
setDefaultErrorMode()
Resets error mode to the default values: many errors are reported as warnings, and resulting triples are produced. |
boolean |
setEmbedding(boolean embed)
Sets whether the XML document is only RDF, or contains RDF embedded in other XML. |
int |
setErrorMode(int errno,
int mode)
Sets or gets the error handling mode for a specific error condition. |
void |
setIRIFactory(IRIFactory f)
Set the IRI factory (and hence the IRI checking rules) |
static void |
setIRIFactoryGlobal(IRIFactory f)
Set the system-wide default IRI factory, which incorporates the checking rules. |
void |
setLaxErrorMode()
As many errors as possible are ignored. |
void |
setStrictErrorMode()
This sets strict conformance to the W3C Recommendations. |
void |
setStrictErrorMode(int nonErrorMode)
This method detects and prohibits errors according to the W3C Recommendations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ARPOptions createNewOptions()
public int setErrorMode(int errno, int mode)
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
ARPErrorNumbers.EM_WARNING
ARPErrorNumbers.EM_ERROR
ARPErrorNumbers.EM_FATAL
errno
- The specific error condition to change.mode
- The new mode for this condition.
public void setDefaultErrorMode()
public void setLaxErrorMode()
public void setStrictErrorMode()
public void setStrictErrorMode(int nonErrorMode)
ARPErrorNumbers.WARN_PROCESSING_INSTRUCTION_IN_RDF
, nonErrorMode is used.
nonErrorMode
- The way of treating non-error conditions.public ARPOptions copy()
public boolean setEmbedding(boolean embed)
embed
- true: Look for embedded RDF; or false: match a typed node or rdf:Description against the whole document (the default).
public int getErrorMode(int eCode)
eCode
-
ARPErrorNumbers.EM_IGNORE
,
ARPErrorNumbers.EM_WARNING
,
ARPErrorNumbers.EM_ERROR
,
ARPErrorNumbers.EM_FATAL
public boolean getEmbedding()
public void setIRIFactory(IRIFactory f)
public IRIFactory getIRIFactory()
public static void setIRIFactoryGlobal(IRIFactory f)
public static IRIFactory getIRIFactoryGlobal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |