You can specify a property editor class to use with a property, using the editor-class attribute. For example, the following tag associates a special property editor with the password property:

<property name="password" data-type="string" required="true"

A property editor can be used to validate a property value. Note, however, that a property editor does not have access to the repository item, only the property. Therefore, you cannot use a property editor to make comparisons with other properties.

You can also limit a property’s values to a list of valid choices with an enumerated property. See the Enumerated Properties section.