public interface SaxReader extends SaxEntity, XmlSchema
| Modifier and Type | Interface and Description |
|---|---|
static class |
SaxReader.ReadStatus
List of possible states of SAX-READER object, returned by the PARSE-STATUS attribute:
SaxReader.ReadStatus.SAX_UNINITIALIZED -The SAX-UNINITIALIZED constant which in 4GL is the integer
value 1.
SaxReader.ReadStatus.SAX_RUNNING - The SAX-RUNNING constant which in 4GL is the integer 2.
SaxReader.ReadStatus.SAX_COMPLETE - The SAX-COMPLETE constant which in 4GL is the integer 3.
SaxReader.ReadStatus.SAX_PARSER_ERROR - The SAX-PARSER-ERROR constant which in 4GL is the integer 4. |
| Modifier and Type | Field and Description |
|---|---|
static int |
SAX_COMPLETE
The SAX-COMPLETE constant returned by the PARSE-STATUS attribute, which in 4GL is the
integer value 3.
|
static int |
SAX_PARSER_ERROR
The SAX-PARSER-ERROR constant returned by the PARSE-STATUS attribute, which in 4GL is the
integer value 4.
|
static int |
SAX_RUNNING
The SAX-RUNNING constant returned by the PARSE-STATUS attribute, which in 4GL is the
integer value 2.
|
static int |
SAX_UNINITIALIZED
The SAX-UNINITIALIZE constant returned by the PARSE-STATUS attribute, which in 4GL is the
integer value 1.
|
| Modifier and Type | Method and Description |
|---|---|
handle |
getHandler()
Gets the value of the handler attribute for the given SAX Reader object.
|
integer |
getLocatorColumnNumber()
Gets the value of the current 1-based column in XML source.
|
integer |
getLocatorLineNumber()
Gets the value of the current 1-based line number in XML source.
|
character |
getLocatorPublicId()
Gets the current value of the public identifier of the current XML source.
|
character |
getLocatorSystemId()
Gets the current value of the system identifier of the current XML source.
|
integer |
getParseStatus()
Gets the current value of the parse status.
|
logical |
getValidationEnabled()
Indicates if the parser validates the XML document against DTD or not.
|
void |
saxParse()
Executing single call parse of an XML document associated with a SAX-Reader object.
|
void |
saxParseFirst()
Initializes and begins progressive-scan parse of an XML document associated with a
SAX-Reader object.
|
void |
saxParseNext()
Continues progressive-scan parse of an XML document associated with a SAX-Reader object.
|
void |
setHandler(handle hCallback)
Sets the value of the handler attribute for the given SAX Reader object.
|
logical |
setInputSource(character mode,
java.lang.Object source)
Specifies the input source of the XML document to be parsed by a SAX-Reader object.
|
logical |
setInputSource(java.lang.String mode,
java.lang.Object source)
Specifies the input source of the XML document to be parsed by a SAX-Reader object.
|
void |
setSchemaLocation(java.lang.String location)
Sets the current value of the namespace location pair mapping.
|
void |
setSchemaPath(java.lang.String path)
Sets the delimiter separated list of directory paths used to locate XML DTD associated with
a particular XML document.
|
void |
setValidationEnabled(boolean enable)
Redefines whether the parser will validate the XML document against DTD or not.
|
void |
setValidationEnabled(logical enable)
Redefines whether the parser will validate the XML document against DTD or not.
|
logical |
stopParsing()
Causes parser to stop parsing the XML document.
|
insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttribute, insertAttributeaddSchemaLocation, addSchemaLocation, addSchemaLocation, addSchemaLocation, getNonamespaceSchemaLocation, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, removeAttribute, setNonamespaceSchemaLocation, setNonamespaceSchemaLocationid, id, unknown, validgetUniqueIDgetADMData, setADMData, setADMDatagetEntityExpansionLimit, getSchemaLocation, getSchemaPath, getStrictEntityResolution, getSuppressNamespaceProcessing, setEntityExpansionLimit, setEntityExpansionLimit, setSchemaLocation, setSchemaPath, setStrictEntityResolution, setStrictEntityResolution, setSuppressNamespaceProcessing, setSuppressNamespaceProcessingstatic final int SAX_UNINITIALIZED
static final int SAX_RUNNING
static final int SAX_COMPLETE
static final int SAX_PARSER_ERROR
handle getHandler()
void setHandler(handle hCallback)
hCallback - The handle of the new callback handler to be set for the handler attribute.integer getLocatorColumnNumber()
integer getLocatorLineNumber()
integer getParseStatus()
SaxReader.ReadStatus.SAX_UNINITIALIZED. The other returned values are
SaxReader.ReadStatus.SAX_COMPLETE, SaxReader.ReadStatus.SAX_PARSER_ERROR or
SaxReader.ReadStatus.SAX_RUNNING.character getLocatorPublicId()
character getLocatorSystemId()
void setSchemaLocation(java.lang.String location)
location - The new value the current schema-location attribute.void setSchemaPath(java.lang.String path)
path - The new value the current schema-path attribute.logical getValidationEnabled()
void setValidationEnabled(logical enable)
enable - The new value the current validation-enabled attribute.void setValidationEnabled(boolean enable)
enable - The new value the current validation-enabled attribute.void saxParse()
void saxParseFirst()
void saxParseNext()
logical setInputSource(java.lang.String mode, java.lang.Object source)
mode - The type of the object to process. Can be 'FILE', 'HANDLE', 'MEMPTR' or
'LONGCHAR'.source - The appropriate object to process.true in case of success false otherwise.logical setInputSource(character mode, java.lang.Object source)
mode - The type of the object to process. Can be 'FILE', 'HANDLE', 'MEMPTR' or
'LONGCHAR'.source - The appropriate object to process.true in case of success false otherwise.logical stopParsing()
true in case of success false otherwise.