@ Nonnull public EChange addAllFrom ( @ Nonnull final MapBasedXPathVariableResolver aOther , final boolean bOverwrite ) { ValueEnforcer . notNull ( aOther , "Other" ) ; EChange eChange = EChange . UNCHANGED ; for ( final Map . Entry < String , ? > aEntry : aOther . getAllVariables ( ) . entrySet ( ) ) { // Local part only to QName final QName aKey = new QName ( aEntry . getKey ( ) ) ; if ( bOverwrite || ! m_aMap . containsKey ( aKey ) ) { m_aMap . put ( aKey , aEntry . getValue ( ) ) ; eChange = EChange . CHANGED ; } } return eChange ; }
Add all variables from the other variable resolver into this resolver . This methods creates a QName with an empty namespace URI .