public void syncWith ( PresentationModel sourcePresentationModel ) { for ( A targetAttribute : attributes ) { Attribute sourceAttribute = sourcePresentationModel . getAt ( targetAttribute . getPropertyName ( ) , targetAttribute . getTag ( ) ) ; if ( sourceAttribute != null ) targetAttribute . syncWith ( sourceAttribute ) ; } }
Synchronizes all attributes of the source with all matching attributes of this presentation model