Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Set to false to bypass some rules
Protected_StaticALLOW_Permission flag to allow numeric digits.
StaticALLOW_Permission flag to allow alphabetic letters.
StaticALLOW_Permission flag to allow number values.
StaticALLOW_Permission flag to allow whitespace characters.
StaticALLOW_Permission flag to allow string values.
StaticEVENT_Event name triggered when the property value changes.
StaticEVENT_Event name triggered when the property is deleted.
StaticTRANSFORM_Transformation identifier to convert string to lowercase.
StaticTRANSFORM_Transformation identifier to convert string to uppercase.
StaticTYPEThe string literal type identifier for this property.
Protected_Creates a deep clone of the current property instance, preserving its prototype chain.
A new independent instance of the property.
Retrieves the string value, optionally applying a casing transformation.
Use TRANSFORM_LCASE or TRANSFORM_UCASE to mutate output case.
The raw or transformed string, or undefined.
Assigns a new string value while strictly enforcing length and character constraints.
The string to assign.
Whether to mark the property as modified.
The property instance for chaining.
Serializes the property for JSON stringification.
The raw internal value of the property.
Retrieves the current value of the property, or its default value if currently undefined.
An optional transformation function applied to the value before returning it.
The raw or transformed property value.
A property type strictly validating and handling strings. It ensures that length constraints and specific character rules are respected before saving.
Example