|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserConfiguration
The interface to configure RDF parsers.
Field Summary | |
---|---|
static int |
DT_IGNORE
Constant indicating that datatypes semantics should be ignored. |
static int |
DT_NORMALIZE
Constant indicating that values of datatyped literals should be normalized to their canonical representation. |
static int |
DT_VERIFY
Constant indicating that values of datatyped literals should be verified. |
Method Summary | |
---|---|
void |
setDatatypeHandling(int datatypeHandling)
Sets the datatype handling mode. |
void |
setNamespaceListener(NamespaceListener nl)
Sets the NamespaceListener that will be notified of any namespace declarations that the parser finds during parsing. |
void |
setParseErrorListener(ParseErrorListener el)
Sets the ParseErrorListener that will be notified of any errors that this parser finds during parsing. |
void |
setParseLocationListener(ParseLocationListener ll)
Sets the ParseLocationListener that will be notified of the parser's progress during the parse process. |
void |
setParseStandAloneDocuments(boolean standAloneDocs)
Sets the parser in a mode to parse stand-alone RDF documents. |
void |
setPreserveBNodeIds(boolean preserveBNodeIds)
Set whether the parser should preserve bnode identifiers specified in the source (default is false). |
void |
setStopAtFirstError(boolean stopAtFirstError)
Sets whether the parser should stop immediately if it finds an error in the data (default value is true). |
void |
setVerifyData(boolean verifyData)
Sets whether the parser should verify the data it parses (default value is true). |
Methods inherited from interface org.jrdf.parser.StatementHandlerConfiguration |
---|
setStatementHandler |
Field Detail |
---|
static final int DT_IGNORE
static final int DT_VERIFY
static final int DT_NORMALIZE
Method Detail |
---|
void setParseErrorListener(ParseErrorListener el)
el
- the error listener.void setParseLocationListener(ParseLocationListener ll)
ll
- the parser location listener.void setNamespaceListener(NamespaceListener nl)
nl
- the namespace listener.void setVerifyData(boolean verifyData)
verifyData
- true to verify the data parsed in.void setPreserveBNodeIds(boolean preserveBNodeIds)
preserveBNodeIds
- true to presever blank node identifier.void setParseStandAloneDocuments(boolean standAloneDocs)
standAloneDocs
- true in standad alone mode.void setStopAtFirstError(boolean stopAtFirstError)
stopAtFirstError
- true if an error should stop parsing.void setDatatypeHandling(int datatypeHandling)
datatypeHandling
- One of the constants
DT_IGNORE, DT_VERIFY or
DT_NORMALIZE.DT_IGNORE
,
DT_VERIFY
,
DT_NORMALIZE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |