Class ContentModelSettings
- java.lang.Object
-
- org.eclipse.lemminx.extensions.contentmodel.settings.ContentModelSettings
-
public class ContentModelSettings extends Object
Content model settings.
-
-
Constructor Summary
Constructors Constructor Description ContentModelSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getCatalogs()Returns the list of the XML catalogs file path.static ContentModelSettingsgetContentModelXMLSettings(Object initializationOptionsSettings)XMLDownloadExternalResourcesSettingsgetDownloadExternalResources()XMLFileAssociation[]getFileAssociations()Returns file associations list between a file name pattern (glob) and an XML Schema file, DTD (system Id).XMLSymbolsSettingsgetSymbols()XMLValidationRootSettingsgetValidation()booleanisShowReferencedGrammars()BooleanisUseCache()Returns true if cache to download XML Schema, DTD must be activated and false otherwise.voidsetCatalogs(String[] catalogs)Register the list of the XML catalogs file path.voidsetDownloadExternalResources(XMLDownloadExternalResourcesSettings downloadExternalResources)voidsetFileAssociations(XMLFileAssociation[] fileAssociations)voidsetSymbols(XMLSymbolsSettings symbols)voidsetUseCache(Boolean useCache)Set cache to true if cache to download XML Schema, DTD must be activated and false otherwise.voidsetValidation(XMLValidationRootSettings validation)
-
-
-
Method Detail
-
isUseCache
public Boolean isUseCache()
Returns true if cache to download XML Schema, DTD must be activated and false otherwise.- Returns:
- true if cache to download XML Schema, DTD must be activated and false otherwise.
-
setUseCache
public void setUseCache(Boolean useCache)
Set cache to true if cache to download XML Schema, DTD must be activated and false otherwise.- Parameters:
useCache- the use cache.
-
setCatalogs
public void setCatalogs(String[] catalogs)
Register the list of the XML catalogs file path.- Parameters:
catalogs-
-
getCatalogs
public String[] getCatalogs()
Returns the list of the XML catalogs file path.- Returns:
- the list of the XML catalogs file path.
-
setFileAssociations
public void setFileAssociations(XMLFileAssociation[] fileAssociations)
-
getFileAssociations
public XMLFileAssociation[] getFileAssociations()
Returns file associations list between a file name pattern (glob) and an XML Schema file, DTD (system Id).- Returns:
- file associations list between a file name pattern (glob) and an XML Schema file, DTD (system Id).
-
getContentModelXMLSettings
public static ContentModelSettings getContentModelXMLSettings(Object initializationOptionsSettings)
-
setValidation
public void setValidation(XMLValidationRootSettings validation)
-
getValidation
public XMLValidationRootSettings getValidation()
-
setSymbols
public void setSymbols(XMLSymbolsSettings symbols)
-
getSymbols
public XMLSymbolsSettings getSymbols()
-
isShowReferencedGrammars
public boolean isShowReferencedGrammars()
-
getDownloadExternalResources
public XMLDownloadExternalResourcesSettings getDownloadExternalResources()
-
setDownloadExternalResources
public void setDownloadExternalResources(XMLDownloadExternalResourcesSettings downloadExternalResources)
-
-