protected String getMetaDataForDecimalAs ( String metaDataPrefixParam , double minParam , double maxParam , double stepFactorParam , String prefixParam ) { StringBuffer returnBuffer = new StringBuffer ( ) ; if ( metaDataPrefixParam != null && ! metaDataPrefixParam . isEmpty ( ) ) { returnBuffer . append ( metaDataPrefixParam ) ; } //Min... returnBuffer . append ( FieldMetaData . Decimal . UNDERSCORE ) ; returnBuffer . append ( FieldMetaData . Decimal . MIN ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_OPEN ) ; returnBuffer . append ( minParam ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_CLOSE ) ; returnBuffer . append ( FieldMetaData . Decimal . UNDERSCORE ) ; //Max... returnBuffer . append ( FieldMetaData . Decimal . MAX ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_OPEN ) ; returnBuffer . append ( maxParam ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_CLOSE ) ; returnBuffer . append ( FieldMetaData . Decimal . UNDERSCORE ) ; //Step Factor... returnBuffer . append ( FieldMetaData . Decimal . STEP_FACTOR ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_OPEN ) ; returnBuffer . append ( stepFactorParam ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_CLOSE ) ; returnBuffer . append ( FieldMetaData . Decimal . UNDERSCORE ) ; //Prefix String prefix = ( prefixParam == null ) ? "" : prefixParam ; returnBuffer . append ( FieldMetaData . Decimal . PREFIX ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_OPEN ) ; returnBuffer . append ( prefix ) ; returnBuffer . append ( FieldMetaData . Decimal . SQ_CLOSE ) ; return returnBuffer . toString ( ) ; }
Construct the correct Meta - Data from parameters .