Class XMLValidationRootSettings
java.lang.Object
org.eclipse.lemminx.extensions.contentmodel.settings.XMLValidationSettings
org.eclipse.lemminx.extensions.contentmodel.settings.XMLValidationRootSettings
XML validation settings root which defines validation rules for all files.
The
XMLValidationRootSettingsfilters can be used to define
custom validation rule for a given file pattern:
[
{
"pattern": "**.exsd",
"enabled": false
},
{
"pattern": "**{.project,.classpath,plugin.xml,feature.xml,category.xml,.target,.product}",
"noGrammar": "ignore"
}
]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns validation filters to define custom validation rule for a given file pattern and null otherwise.Returns the validation settings for the given uri and the global validation settings otherwise.inthashCode()merge(XMLValidationRootSettings settings) voidsetFilters(XMLValidationFilter[] filters) Methods inherited from class org.eclipse.lemminx.extensions.contentmodel.settings.XMLValidationSettings
getNamespaces, getNoGrammar, getNoGrammarSeverity, getSchema, getXInclude, isDisallowDocTypeDecl, isEnabled, isRelatedInformation, isResolveExternalEntities, merge, setCapabilities, setDisallowDocTypeDecl, setEnabled, setNamespaces, setNoGrammar, setResolveExternalEntities, setSchema, setXInclude
-
Constructor Details
-
XMLValidationRootSettings
public XMLValidationRootSettings()
-
-
Method Details
-
getFilters
Returns validation filters to define custom validation rule for a given file pattern and null otherwise.- Returns:
- validation filters to define custom validation rule for a given file pattern and null otherwise.
-
setFilters
-
getValidationSettings
Returns the validation settings for the given uri and the global validation settings otherwise.- Parameters:
uri- the XML document to validate.
-
merge
-
hashCode
public int hashCode()- Overrides:
hashCodein classXMLValidationSettings
-
equals
- Overrides:
equalsin classXMLValidationSettings
-