public void set_default_properties ( UserDefaultAttrProp prop_list ) { if ( prop_list . label != null ) user_default_properties . addElement ( new AttrProperty ( "label" , prop_list . label ) ) ; if ( prop_list . description != null ) user_default_properties . addElement ( new AttrProperty ( "description" , prop_list . description ) ) ; if ( prop_list . unit != null ) user_default_properties . addElement ( new AttrProperty ( "unit" , prop_list . unit ) ) ; if ( prop_list . standard_unit != null ) user_default_properties . addElement ( new AttrProperty ( "standard_unit" , prop_list . standard_unit ) ) ; if ( prop_list . display_unit != null ) user_default_properties . addElement ( new AttrProperty ( "display_unit" , prop_list . display_unit ) ) ; if ( prop_list . format != null ) user_default_properties . addElement ( new AttrProperty ( "format" , prop_list . format ) ) ; if ( prop_list . min_value != null ) user_default_properties . addElement ( new AttrProperty ( "min_value" , prop_list . min_value ) ) ; if ( prop_list . max_value != null ) user_default_properties . addElement ( new AttrProperty ( "max_value" , prop_list . max_value ) ) ; if ( prop_list . min_alarm != null ) user_default_properties . addElement ( new AttrProperty ( "min_alarm" , prop_list . min_alarm ) ) ; if ( prop_list . max_alarm != null ) user_default_properties . addElement ( new AttrProperty ( "max_alarm" , prop_list . max_alarm ) ) ; }
Set the attribute user default properties .