/**
* {@inheritDoc}
*/
public void handle( SetProperty annotation, Field element, RulesBinder rulesBinder )
{
SetPropertiesBuilder builder = rulesBinder
.forPattern( annotation.pattern() )
.withNamespaceURI( annotation.namespaceURI() )
.setProperties();
if ( annotation.attributeName() != null && annotation.attributeName().length() > 0
&& !element.getName().equals( annotation.attributeName() ) )
{
builder.addAlias( annotation.attributeName(), element.getName() );
}
}