public void assignDriver ( XAttribute attribute , String driver ) { if ( driver != null && driver . trim ( ) . length ( ) > 0 ) { XAttributeLiteral attr = ( XAttributeLiteral ) ATTR_DRIVER . clone ( ) ; attr . setValue ( driver ) ; attribute . getAttributes ( ) . put ( KEY_DRIVER , attr ) ; } }
Assigns any attribute its cost driver as defined by this extension s driver attribute .