|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputConfigFlags
Constant interface that contains configuration flag used by parser and parser factory, as well as some other input constants.
Field Summary | |
---|---|
static int |
CFG_AUTO_CLOSE_INPUT
Property that enables/disables stream reader to close the underlying input source, either when it is asked to (.close() is called), or when it doesn't need it any more (reaching EOF, hitting an unrecoverable exception). |
static int |
CFG_CACHE_DTDS
If true, input factory is allowed cache parsed external DTD subsets, potentially speeding up things for which DTDs are needed for: entity substitution, attribute defaulting, and of course DTD-based validation. |
static int |
CFG_CACHE_DTDS_BY_PUBLIC_ID
If true, key used for matching DTD subsets can be the public id, if false, only system id can be used. |
static int |
CFG_COALESCE_TEXT
|
static int |
CFG_INTERN_NS_URIS
It true, will call intern() on all namespace URIs parsed; otherwise will just use 'regular' Strings created from parsed contents. |
static int |
CFG_LAZY_PARSING
If true, input factory can defer parsing of nodes until data is actually needed; if false, it has to read all the data in right away when next type is requested. |
static int |
CFG_NAMESPACE_AWARE
If true, parser will handle namespaces according to XML specs; if false, will only pass them as part of element/attribute name value information. |
static int |
CFG_NORMALIZE_ATTR_VALUES
If true, will do attribute value normalization as explained in XML specs; if false, will leave values as they are in input (including not converting linefeeds). |
static int |
CFG_NORMALIZE_LFS
If true, will convert all 'alien' linefeeds (\r\n, \r) to standard linefeed char (\n), in content like text, CDATA, processing instructions and comments. |
static int |
CFG_PRESERVE_LOCATION
Property that determines whether Event objects created will contain (accurate) Location information or not. |
static int |
CFG_REPLACE_ENTITY_REFS
Flag that enables automatic replacement of internal entities |
static int |
CFG_REPORT_CDATA
If true, parser will accurately report CDATA event as such (unless coalescing); otherwise will always report them as CHARACTERS independent of coalescing settings. |
static int |
CFG_REPORT_PROLOG_WS
If true, parser will report (ignorable) white space events in prolog and epilog; if false, it will silently ignore them. |
static int |
CFG_SUPPORT_DTD
Whether DTD handling is enabled or disabled; disabling means both internal and external subsets will just be skipped unprocessed. |
static int |
CFG_SUPPORT_DTDPP
If true, DTD-parser will recognize DTD++ features, and the validator will also use any such information found from DTD when DTD validation is enabled. |
static int |
CFG_SUPPORT_EXTERNAL_ENTITIES
Flag that enables support for expanding external entities. |
static int |
CFG_VALIDATE_AGAINST_DTD
Not yet (fully) supported; added as the placeholder |
static int |
CFG_VALIDATE_TEXT_CHARS
If true, will check that all characters in textual content of the document (content that is not part of markup; including content in CDATA, comments and processing instructions) are valid XML (1.1) characters. |
static int |
CFG_XMLID_TYPING
If true, xml:id attribute type assignment and matching checks will be done as per Xml:id specification. |
static int |
CFG_XMLID_UNIQ_CHECKS
If true, xml:id attribute uniqueness constraints are enforced, even if not validating against DTD otherwise. |
Field Detail |
---|
static final int CFG_NAMESPACE_AWARE
static final int CFG_COALESCE_TEXT
static final int CFG_REPLACE_ENTITY_REFS
static final int CFG_SUPPORT_EXTERNAL_ENTITIES
CFG_REPLACE_ENTITY_REFS
and CFG_SUPPORT_DTD
both need to be enabled for external entities to be supported.
static final int CFG_SUPPORT_DTD
static final int CFG_VALIDATE_AGAINST_DTD
static final int CFG_REPORT_PROLOG_WS
static final int CFG_REPORT_CDATA
static final int CFG_INTERN_NS_URIS
static final int CFG_PRESERVE_LOCATION
Location
information or not. If not,
Location may be null or a fixed location (beginning of main
XML file).
Note, however, that the underlying parser will still keep track of location information for error reporting purposes; it's only Event objects that are affected.
static final int CFG_AUTO_CLOSE_INPUT
static final int CFG_NORMALIZE_LFS
Note: not normalizing linefeeds is against XML 1.0 specs
static final int CFG_NORMALIZE_ATTR_VALUES
Note: not normalizing attribute values is against XML 1.0 specs
static final int CFG_VALIDATE_TEXT_CHARS
!!! TBI.
static final int CFG_CACHE_DTDS
static final int CFG_CACHE_DTDS_BY_PUBLIC_ID
static final int CFG_LAZY_PARSING
static final int CFG_SUPPORT_DTDPP
static final int CFG_XMLID_TYPING
static final int CFG_XMLID_UNIQ_CHECKS
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |