public void addDerivedDates ( Map < String , Object > values ) { Map < String , Object > valuesToAdd = new HashMap < String , Object > ( ) ; for ( Map . Entry < String , Object > entry : values . entrySet ( ) ) { String key = entry . getKey ( ) ; Object object = entry . getValue ( ) ; if ( object != null ) { String stringValue = object . toString ( ) ; Matcher matcher = XML_DATE . matcher ( stringValue ) ; if ( matcher . matches ( ) ) { handleXmlMatch ( matcher , valuesToAdd , key ) ; } else { matcher = NL_DATE . matcher ( stringValue ) ; if ( matcher . matches ( ) ) { handleNLMatch ( matcher , valuesToAdd , key ) ; } } } } values . putAll ( valuesToAdd ) ; }
Adds derived values for dates in map .