How to pass a attribute code dynamically in extension_attributes.xml

How to pass a attribute code dynamically in extension_attributes.xml

extension_attributes.xml

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">     <extension_attributes for="Magento\Quote\Api\Data\AddressInterface">         <attribute code="How_to_pass_code_dynamically_here" type="string" />         <attribute code="How_to_pass_code_dynamically_here" type="string" />     </extension_attributes> </config> 

It should contain getters and setters of address attribute. In this case. <attribute_code="example"> setExample(), getExample()