public class FidelityOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_COMMENT |
static String |
FEATURE_DTD |
static String |
FEATURE_LEXICAL_VALUE |
static String |
FEATURE_PI |
static String |
FEATURE_PREFIX |
static String |
FEATURE_SC |
static String |
FEATURE_STRICT |
protected boolean |
isComment |
protected boolean |
isDTD |
protected boolean |
isLexicalValue |
protected boolean |
isPI |
protected boolean |
isPrefix |
protected boolean |
isSC |
protected boolean |
isStrict |
protected Set<String> |
options |
| Modifier | Constructor and Description |
|---|---|
protected |
FidelityOptions() |
| Modifier and Type | Method and Description |
|---|---|
static FidelityOptions |
createAll()
Creates fidelity options using the maximum XML compatibility mode, e.g.
|
static FidelityOptions |
createDefault()
Creates fidelity options using default options
|
static FidelityOptions |
createStrict()
Creates fidelity options using strict option.
|
boolean |
equals(Object o) |
int |
get1stLevelEventCodeLength(Grammar grammar) |
int |
get2ndLevelCharacteristics(Grammar grammar) |
int |
get2ndLevelEventCode(EventType eventType,
Grammar grammar) |
EventType |
get2ndLevelEventType(int ec2,
Grammar grammar) |
int |
get3rdLevelCharacteristics() |
int |
get3rdLevelEventCode(EventType eventType) |
EventType |
get3rdLevelEventType(int ec3) |
int |
hashCode() |
boolean |
isFidelityEnabled(String key)
Informs whether the specified feature is enabled.
|
boolean |
isStrict()
Convenience method returning whether all fidelity options that affect
grammars are turned off (e.g.
|
void |
setFidelity(String key,
boolean decision)
Enables or disables the specified fidelity feature.
|
String |
toString() |
public static final String FEATURE_COMMENT
public static final String FEATURE_PI
public static final String FEATURE_DTD
public static final String FEATURE_PREFIX
public static final String FEATURE_LEXICAL_VALUE
public static final String FEATURE_SC
public static final String FEATURE_STRICT
protected boolean isStrict
protected boolean isComment
protected boolean isPI
protected boolean isDTD
protected boolean isPrefix
protected boolean isLexicalValue
protected boolean isSC
public static FidelityOptions createDefault()
public static FidelityOptions createStrict()
public static FidelityOptions createAll()
Note: Per default SelfContained Element support is not set to TRUE. It cannot work together with (Pre-)Compression!
public void setFidelity(String key, boolean decision) throws UnsupportedOption
key - referring to a specific featuredecision - enabling or disabling featureUnsupportedOption - if option is not supportedpublic boolean isFidelityEnabled(String key)
key - featurepublic final boolean isStrict()
public int get1stLevelEventCodeLength(Grammar grammar)
public int get2ndLevelCharacteristics(Grammar grammar)
public EventType get3rdLevelEventType(int ec3)
public int get3rdLevelEventCode(EventType eventType)
public int get3rdLevelCharacteristics()
Copyright © 2018 Siemens AG. All rights reserved.