Package org.eclipse.lemminx.settings
Class XMLPreferences
- java.lang.Object
-
- org.eclipse.lemminx.settings.XMLPreferences
-
public class XMLPreferences extends Object
XML Preferences
-
-
Field Summary
Fields Modifier and Type Field Description static QuoteStyleDEFAULT_QUOTE_STYLEstatic SchemaDocumentationTypeDEFAULT_SCHEMA_DOCUMENTATION_TYPE
-
Constructor Summary
Constructors Constructor Description XMLPreferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetQuotationAsChar()Returns the actual quotation value as a char.StringgetQuotationAsString()Returns the actual quotation value as a String.QuoteStylegetQuoteStyle()Returns the quote styleSchemaDocumentationTypegetShowSchemaDocumentationType()Returns the showSchemaDocumentationTypevoidmerge(XMLPreferences newPreferences)Merges the contents ofnewPreferencesto the currentXMLPreferencesinstancevoidsetQuoteStyle(QuoteStyle quoteStyle)Sets the quote stylevoidsetShowSchemaDocumentationType(SchemaDocumentationType showSchemaDocumentationType)Sets the showSchemaDocumentationType
-
-
-
Field Detail
-
DEFAULT_QUOTE_STYLE
public static final QuoteStyle DEFAULT_QUOTE_STYLE
-
DEFAULT_SCHEMA_DOCUMENTATION_TYPE
public static final SchemaDocumentationType DEFAULT_SCHEMA_DOCUMENTATION_TYPE
-
-
Method Detail
-
getQuotationAsChar
public char getQuotationAsChar()
Returns the actual quotation value as a char. Either a'or". Defaults to".
-
getQuotationAsString
public String getQuotationAsString()
Returns the actual quotation value as a String. Either a'or". Defaults to".
-
setQuoteStyle
public void setQuoteStyle(QuoteStyle quoteStyle)
Sets the quote style- Parameters:
quoteStyle-
-
getQuoteStyle
public QuoteStyle getQuoteStyle()
Returns the quote style- Returns:
-
getShowSchemaDocumentationType
public SchemaDocumentationType getShowSchemaDocumentationType()
Returns the showSchemaDocumentationType
-
setShowSchemaDocumentationType
public void setShowSchemaDocumentationType(SchemaDocumentationType showSchemaDocumentationType)
Sets the showSchemaDocumentationType- Parameters:
showSchemaDocumentationType-
-
merge
public void merge(XMLPreferences newPreferences)
Merges the contents ofnewPreferencesto the currentXMLPreferencesinstance- Parameters:
newPreferences-
-
-