public class XMLValidationSettings extends Object
Constructor and Description |
---|
XMLValidationSettings() |
Modifier and Type | Method and Description |
---|---|
String |
getNoGrammar() |
static org.eclipse.lsp4j.DiagnosticSeverity |
getNoGrammarSeverity(ContentModelSettings settings)
Returns the
noGrammar severity according the given settings and
DiagnosticSeverity.Hint otherwise. |
boolean |
isDisallowDocTypeDecl()
Returns true if a fatal error is thrown if the incoming document contains a
DOCTYPE declaration and false otherwise.
|
boolean |
isEnabled() |
boolean |
isResolveExternalEntities()
Returns true if external entities must be resolved and false otherwise.
|
boolean |
isSchema() |
XMLValidationSettings |
merge(XMLValidationSettings settings) |
void |
setDisallowDocTypeDecl(boolean disallowDocTypeDecl)
Set true if a fatal error is thrown if the incoming document contains a
DOCTYPE declaration and false otherwise.
|
void |
setEnabled(boolean enabled) |
void |
setNoGrammar(String noGrammar) |
void |
setResolveExternalEntities(boolean resolveExternalEntities)
Set true if external entities must be resolved and false otherwise.
|
void |
setSchema(boolean schema) |
public boolean isEnabled()
public void setEnabled(boolean enabled)
syntax
- the syntax to setpublic boolean isSchema()
public void setSchema(boolean schema)
schema
- the schema to setpublic void setNoGrammar(String noGrammar)
public String getNoGrammar()
public boolean isDisallowDocTypeDecl()
public void setDisallowDocTypeDecl(boolean disallowDocTypeDecl)
disallowDocTypeDecl
- disallow DOCTYPE declaration.public boolean isResolveExternalEntities()
public void setResolveExternalEntities(boolean resolveExternalEntities)
resolveExternalEntities
- resolve extrenal entitiespublic static org.eclipse.lsp4j.DiagnosticSeverity getNoGrammarSeverity(ContentModelSettings settings)
noGrammar
severity according the given settings and
DiagnosticSeverity.Hint
otherwise.settings
- the settingsnoGrammar
severity according the given settings and
DiagnosticSeverity.Hint
otherwise.public XMLValidationSettings merge(XMLValidationSettings settings)
Copyright © 2020. All rights reserved.