public static String getfullAttributeNameForAttribute ( final String attributeName ) throws DevFailed { String result ; final String [ ] fields = attributeName . split ( "/" ) ; final Database db = ApiUtil . get_db_obj ( ) ; if ( attributeName . contains ( DBASE_NO ) ) { result = attributeName ; } else if ( fields . length == 1 ) { result = db . get_attribute_from_alias ( fields [ 0 ] ) ; } else if ( fields . length == 2 ) { result = db . get_device_from_alias ( fields [ 0 ] ) + "/" + fields [ 1 ] ; } else { result = attributeName ; } return result ; }
Get the full attribute name