public class XMLValidationSettings extends Object
Constructor and Description |
---|
XMLValidationSettings() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
XMLNamespacesSettings |
getNamespaces()
Returns the XML Namespaces validation settings.
|
String |
getNoGrammar() |
static org.eclipse.lsp4j.DiagnosticSeverity |
getNoGrammarSeverity(XMLValidationSettings validationSettings)
Returns the
noGrammar severity according the given settings and
DiagnosticSeverity.Hint otherwise. |
XMLSchemaSettings |
getSchema()
Returns the XML Schema validation settings.
|
int |
hashCode() |
boolean |
isDisallowDocTypeDecl()
Returns true if a fatal error is thrown if the incoming document contains a
DOCTYPE declaration and false otherwise.
|
boolean |
isEnabled()
Returns true if the validation is enabled and false otherwise.
|
boolean |
isRelatedInformation() |
boolean |
isResolveExternalEntities()
Returns true if external entities must be resolved and false otherwise.
|
XMLValidationSettings |
merge(XMLValidationSettings settings) |
void |
setCapabilities(org.eclipse.lsp4j.PublishDiagnosticsCapabilities publishDiagnostics) |
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)
Set true if the validation is enabled and false otherwise.
|
void |
setNamespaces(XMLNamespacesSettings namespaces)
Set the XML Namespaces validation settings.
|
void |
setNoGrammar(String noGrammar) |
void |
setResolveExternalEntities(boolean resolveExternalEntities)
Set true if external entities must be resolved and false otherwise.
|
void |
setSchema(XMLSchemaSettings schema)
Set the XML Schema validation settings.
|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true if the validation is enabled and false otherwise.public XMLNamespacesSettings getNamespaces()
public void setNamespaces(XMLNamespacesSettings namespaces)
namespaces
- the XML Namespaces validation settings.public XMLSchemaSettings getSchema()
public void setSchema(XMLSchemaSettings schema)
schema
- the XML Schema validation settings.public 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(XMLValidationSettings validationSettings)
noGrammar
severity according the given settings and
DiagnosticSeverity.Hint
otherwise.validationSettings
- the validation settingsnoGrammar
severity according the given settings and
DiagnosticSeverity.Hint
otherwise.public XMLValidationSettings merge(XMLValidationSettings settings)
public void setCapabilities(org.eclipse.lsp4j.PublishDiagnosticsCapabilities publishDiagnostics)
public boolean isRelatedInformation()
Copyright © 2022. All rights reserved.