Package org.eclipse.lemminx.uriresolver
Interface IExternalGrammarLocationProvider
- All Known Implementing Classes:
URIResolverExtensionManager,XMLFileAssociationResolverExtension
public interface IExternalGrammarLocationProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetExternalGrammarLocation(URI fileURI) Provided the file path URI, this will return the external schema location.
-
Field Details
-
SCHEMA_LOCATION
- See Also:
-
NO_NAMESPACE_SCHEMA_LOCATION
- See Also:
-
DOCTYPE
- See Also:
-
RELAXNG
- See Also:
-
-
Method Details
-
getExternalGrammarLocation
Provided the file path URI, this will return the external schema location. The schema location is associated to a specific property, which serves as the key in the map. The supported properties are:http://apache.org/xml/properties/schema/external-schemaLocation - The value for this property follows the same rules as the schemaLocation attribute for an XML document (i.e., multiple schemas are acceptable and must be white-space separated).
http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation - The value for this property follows the same rules as the noNamespaceSchemaLocation attribute for an XML document (i.e., only one schema is allowed).
- Parameters:
filePath- the path for the XML file- Returns:
- a
Mapassociating the external-schemaLocation and/or external-noNamespaceSchemaLocation to the schema location
-