The attribute element allows you to identify and pass name and value pair attributes for a property customizer. This element contains the following attributes:
Attribute | Description |
|---|---|
| The name of the attribute. |
| The value of the attribute. |
Passing name and value attributes into a property-customizer is similar to passing attributes into a custom repository-descriptor. For example, you can update the maskedCreditCardNumber property that was created in The Property Element section to identify the number of digits that are not masked when displaying a credit card number:
<property name="maskedCreditCardNumber" property-customizer="/atg/rest/filtering/ customizers/CreditCardNumberProeprtyCustomizer"> <attribute name="unmaskedLength" value="4" /> </property>
By creating this new attribute, when the credit card information is rendered, all but the last four numbers will be masked.

