Class XMLGenerationSettings.GenerationProfile
java.lang.Object
org.eclipse.lemminx.settings.PathPatternMatcher
org.eclipse.lemminx.settings.DocumentMatcher
org.eclipse.lemminx.extensions.contentmodel.generator.XMLGenerationSettings.GenerationProfile
- Enclosing class:
XMLGenerationSettings
A generation profile that overrides global settings for grammars matching a
glob pattern.
Extends DocumentMatcher to reuse the existing glob matching for
file:// URIs (Java NIO). For non-file URIs (http://,
https://), falls back to a simple textual glob match via
GlobMatcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the given grammar URI matches this profile's pattern.voidsetMaxDepth(Integer maxDepth) voidsetOptionalElements(Boolean optionalElements) voidsetTypeDefaults(Boolean typeDefaults) Methods inherited from class org.eclipse.lemminx.settings.DocumentMatcher
getGrammarURI, getNamespaceURI, getPublicId, getRootElement, getSystemId, matches, setGrammarURI, setNamespaceURI, setPublicId, setRootElement, setSystemIdMethods inherited from class org.eclipse.lemminx.settings.PathPatternMatcher
createGlobMatcher, equals, getPathMatcher, getPattern, matches, setPathMatcher, setPattern
-
Constructor Details
-
GenerationProfile
public GenerationProfile()
-
-
Method Details
-
matches
Returns true if the given grammar URI matches this profile's pattern.For
file://URIs, delegates towhich uses Java NIO glob matching. For other URIs (invalid reference
PathPatternMatcher#matches(String)http://,https://), uses a simple textual glob match.- Overrides:
matchesin classPathPatternMatcher- Parameters:
grammarURI- the grammar URI to match.- Returns:
- true if the URI matches this profile's pattern.
-
getMaxDepth
-
setMaxDepth
-
getOptionalElements
-
setOptionalElements
-
getTypeDefaults
-
setTypeDefaults
-