public boolean updateMetadata ( final RuleMetadata target ) { RuleMetadata metaData = getMetaData ( target . getAttributeName ( ) ) ; if ( metaData != null ) { metaData . setValue ( target . getValue ( ) ) ; return true ; } addMetadata ( target ) ; return false ; }
Update metaData element if it exists or add it otherwise