StringExtensions extension

on

Properties

isValidFieldName bool

Available on String, provided by the StringExtensions extension

Check if this is a valid Odoo field name
no setter
isValidOdooModel bool

Available on String, provided by the StringExtensions extension

Check if this is a valid Odoo model name
no setter
isValidXmlId bool

Available on String, provided by the StringExtensions extension

Check if this is a valid XML identifier
no setter

Methods

capitalize() String

Available on String, provided by the StringExtensions extension

Capitalize first letter
escapeXml() String

Available on String, provided by the StringExtensions extension

Escape XML special characters
toOdooFieldName() String

Available on String, provided by the StringExtensions extension

Convert to Odoo-compatible field name
toSnakeCase() String

Available on String, provided by the StringExtensions extension

Convert to snake_case
truncate(int max) String

Available on String, provided by the StringExtensions extension

Truncate with ellipsis