public void assignAmount ( XAttribute attribute , Double amount ) { if ( amount != null && amount > 0.0 ) { XAttributeContinuous attr = ( XAttributeContinuous ) ATTR_AMOUNT . clone ( ) ; attr . setValue ( amount ) ; attribute . getAttributes ( ) . put ( KEY_AMOUNT , attr ) ; } }
Assigns any attribute its cost amount as defined by this extension s amount attribute .