Class XMLFileAssociation
java.lang.Object
org.eclipse.lemminx.settings.PathPatternMatcher
org.eclipse.lemminx.extensions.contentmodel.settings.XMLFileAssociation
XML file association between a XML file pattern (glob) and an XML Schema file
(systemId).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetExternalSchemaLocation(URI documentUri) Returns the external schema location map with variables resolved for the given document URI.getResolvedSystemId(URI documentUri) Returns the systemId with variables resolved for the given document URI.inthashCode()booleanReturns true if the pattern contains variable references.booleanReturns true if the systemId contains variable references.booleansetPattern(String pattern) voidsetSystemId(String systemId) voidsetWorkspaceFolderUris(List<String> workspaceFolderUris) Sets the workspace folder URIs used for resolving variables like${workspaceFolder}.Methods inherited from class org.eclipse.lemminx.settings.PathPatternMatcher
createGlobMatcher, getPathMatcher, getPattern, matches, setPathMatcher
-
Constructor Details
-
XMLFileAssociation
public XMLFileAssociation()
-
-
Method Details
-
getSystemId
-
setSystemId
-
setPattern
- Overrides:
setPatternin classPathPatternMatcher
-
setWorkspaceFolderUris
Sets the workspace folder URIs used for resolving variables like${workspaceFolder}.- Parameters:
workspaceFolderUris- the workspace folder URIs.
-
hasPatternVariables
public boolean hasPatternVariables()Returns true if the pattern contains variable references.- Returns:
- true if the pattern contains
${...}variable references.
-
hasSystemIdVariables
public boolean hasSystemIdVariables()Returns true if the systemId contains variable references.- Returns:
- true if the systemId contains
${...}variable references.
-
matches
- Overrides:
matchesin classPathPatternMatcher
-
getResolvedSystemId
Returns the systemId with variables resolved for the given document URI.- Parameters:
documentUri- the document URI.- Returns:
- the resolved systemId.
-
getExternalSchemaLocation
-
getExternalSchemaLocation
Returns the external schema location map with variables resolved for the given document URI.- Parameters:
documentUri- the document URI, or null if no variable resolution is needed.- Returns:
- the schema location map.
-
hashCode
public int hashCode() -
equals
- Overrides:
equalsin classPathPatternMatcher
-