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

public static class XMLGenerationSettings.GenerationProfile extends DocumentMatcher
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 Details

    • GenerationProfile

      public GenerationProfile()
  • Method Details

    • matches

      public boolean matches(String grammarURI)
      Returns true if the given grammar URI matches this profile's pattern.

      For file:// URIs, delegates to

      invalid reference
      PathPatternMatcher#matches(String)
      which uses Java NIO glob matching. For other URIs (http://, https://), uses a simple textual glob match.

      Overrides:
      matches in class PathPatternMatcher
      Parameters:
      grammarURI - the grammar URI to match.
      Returns:
      true if the URI matches this profile's pattern.
    • getMaxDepth

      public Integer getMaxDepth()
    • setMaxDepth

      public void setMaxDepth(Integer maxDepth)
    • getOptionalElements

      public Boolean getOptionalElements()
    • setOptionalElements

      public void setOptionalElements(Boolean optionalElements)
    • getTypeDefaults

      public Boolean getTypeDefaults()
    • setTypeDefaults

      public void setTypeDefaults(Boolean typeDefaults)