com.fasterxml.aalto.sax.SAXFeature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aalto-xml Show documentation
Show all versions of aalto-xml Show documentation
Ultra-high performance non-blocking XML processor (Stax/Stax2, SAX/SAX2)
package com.fasterxml.aalto.sax;
/**
* Enumeration for listing all currently (SAX 2.0.2) defined standard
* features
*/
public enum SAXFeature
{
EXTERNAL_GENERAL_ENTITIES("external-general-entities")
,EXTERNAL_PARAMETER_ENTITIES("external-parameter-entities")
,IS_STANDALONE("is-standalone")
,LEXICAL_HANDLER_PARAMETER_ENTITIES("lexical-handler/parameter-entities")
,NAMESPACES("namespaces")
,NAMESPACE_PREFIXES("namespace-prefixes")
,RESOLVE_DTD_URIS("resolve-dtd-uris")
,STRING_INTERNING("string-interning")
,UNICODE_NORMALIZATION_CHECKING("unicode-normalization-checking")
,USE_ATTRIBUTES2("use-attributes2")
,USE_LOCATOR2("use-locator2")
,USE_ENTITY_RESOLVER2("use-entity-resolver2")
,VALIDATION("validation")
,XMLNS_URIS("xmlns-uris")
,XML_1_1("xml-1.1")
;
public final static String STD_FEATURE_PREFIX = "http://xml.org/sax/features/";
private final String mSuffix;
SAXFeature(String suffix) {
mSuffix = suffix;
}
public String getSuffix() { return mSuffix; }
public String toExternal() { return STD_FEATURE_PREFIX + mSuffix; }
}