1,904
questions
0
votes
0
answers
26
views
How do I return the correct builder from a builder hierarchy in a generic factory method?
I want to write a factory method that takes a generic builder as a parameter and returns the same type.
I created a class hierarchy with xjc with the jaxb-rich-contract-plugin and the -Xfluent-builder ...
-2
votes
1
answer
48
views
Can a Lombok builder be used fluently?
I want to populate an object based on the field names which I will pass in at runtime. I created an object with a Lombok builder and a setField static method to populate the object with the runtime ...
-1
votes
1
answer
54
views
Builder design pattern for API endpoint Spring Boot
I tried to use a builder design pattern for a model class. I need to have some mandatory files and some optional fields; this design could help me in this scenario. I am using Spring Boot and Java 22 ...
2
votes
1
answer
73
views
What is the advantage of adding a static "builder()" method in the Builder Pattern? [closed]
I'm wondering about whether my implementation of the Builder pattern is wrong or not.
Let's say we have a User class for which we want to have a Builder, my implementation would be:
public class User
{...
0
votes
0
answers
34
views
Inconsistent layout with custom markdown builders
I have the following three builders to provide subscripts and superscripts, plus a dynamically colorable code block. All of them are handled by their respective InlineSyntax handlers properly.
class ...
0
votes
0
answers
28
views
Android Kotlin ScanFilter Builder class not functioning
As stated above, I'm trying to use ScanFilter.Builder() to construct a filter for my bluetooth application, and it gives an unresolved reference error.
I have ScanFilter properly imported, and the ...
0
votes
0
answers
21
views
How to avoid regenerating same component in builder io
I have uploaded/imported 2 figma in builder io. One is landing page and another is inner page and generate code in builder io but that creates 2 same component for Header and Footer as that is common ...
3
votes
1
answer
69
views
Multiple constructors annotated with Lombok @Builder cause a problem?
This is my first question, so please feel free to correct anything that I missed writing this question:)
I am having trouble with using the @Bulider with my DTO objects.
I have an abstract class "...
0
votes
0
answers
23
views
Genie Builder won't start. I get the following: ERROR: LoadError: UndefVarError: `BE8` not defined
I have installed genie builder, but I cannot start.
Here is the installation order:
1- I installed Julia language in my computer
2- I then installed genie.jl using Pkg.add(Genie)
3- I then installed ...
2
votes
2
answers
59
views
How to create a step builder in Kotlin that supports repeatable steps
I am investigationg step builder patterns in Kotlin and have a requirement where some of the steps are repeatable or loop able as follows:-
I have a Map<Header, List<Item>> and would like ...
0
votes
0
answers
13
views
My pagefooter with setting - print only last page - apears on more pages
I've made a invoice report based on a dataset from AL (Business Central). It contains 2 dataitems - head and line information. NB: the head contains the totals of the invoice.
The totals of the ...
1
vote
1
answer
57
views
Groovy merge 2 builder classes
I have a big class Customer for which I am using groovy's @Builder annotation to generate builder classes. This works fine but while writing unit tests what I want to do is to define a customer with ...
0
votes
1
answer
204
views
Fusion Builder Design and Animation tabs not working in Wordpress editor
The problem is in the Avada Fusion Builder editor of Wordpress, practically the Design and Animation tabs of Fusion Builder do not work.
I can access the editor page, click on each component but for ...
-1
votes
1
answer
57
views
Typed builder pattern: bypassing invariants runtime
I would like to determine if there is a way to follow the type state pattern but allow invariants if there is an alternative.
Suppose I have a builder pattern for a wrapper struct around a trait.
...
0
votes
2
answers
105
views
Documentation of gtk xml builder definition
Where can I find the documentation of GTK xml definitions for gtk builder files?
For example for gtkwindow I found only this:
https://docs.gtk.org/gtk4/class.Window.html#gtkwindow-as-gtkbuildable
...
0
votes
1
answer
76
views
Error: The named parameter 'child' is required, but there's no corresponding argument. Try adding the required argument
This is the code below:
`// Automatic FlutterFlow imports
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // ...
1
vote
1
answer
116
views
Is there an essential difference in using of `Widget` or `WidgetBuilder` to pass widget as parameter to another widget in flutter
Let's say I have a widget:
class MyWidget {
final Widget? leading;
final WidgetBuilder? trailing;
Widget build(BuildContext context) {
return Row(
children: [
if(leading != ...
0
votes
0
answers
43
views
RWbuilder not opening
Can anyone please help me.
I have installed oracle forms and reports however, unable to use rwbuilder.
All the prerequisite softwares are installed but still unable to use.
tried all possible ...
0
votes
0
answers
14
views
User-defined type assertion guard for builder results in data field being null
I am trying to make a builder that allows for both chaining and type assertions.
Chaining is working fine.
Assertions, however, are not updating the data correctly.
type BuilderSchema = {
[k in ...
0
votes
0
answers
70
views
Custom Preview Function in GrapesJS Page Builder
I have successfully implemented a page builder using the GrapesJS tool, and it's functioning as expected. However, I'm looking to enhance the user experience by adding a custom preview function that ...
0
votes
2
answers
500
views
GrapeJS - How to save and load customized page
I created a simple page builder by following GrapeJS Docs and it is working well.
I think there need to be 2 functions to save and load the generated page.
How can I do this?
const editor = grapesjs....
0
votes
0
answers
140
views
Facing problem while creating build of electron js project
i found this error in my terminal while i'm creating build
• electron-builder version=24.13.3 os=10.0.22631
• loaded configuration file=package.json ("build" field)
• writing effective ...
0
votes
2
answers
55
views
How can I enforce the first method used in builder pattern (C#)
I'm currently learning the builder pattern and want to require some sort of order/options of methods, and mainly make this visible in intellisense, so not (just) with exceptions on wrong ...
0
votes
0
answers
81
views
Spring(Legacy Project) : Errors running builder 'Java Builder' on project 'ProjectName'. javax/annotation/processing/AbstractProcessor
error
Has anyone faced this error?
someone suspected this error caused from java path setting .
In my descktop i have jdk 11 and jdk 17.
this project is made based on jdk 11 so i created a system ...
0
votes
1
answer
84
views
Jackson Xml - how to use builder
According to the current information at the jackson github site, it is possible to configure the serializer using builder style construction. However what I don't see is what are the configuration ...
0
votes
0
answers
228
views
WPBakery Page Builder | Create custom element and align
I have created a custom WP Bakery element called "Custom Title." This element allows users to input text and align it. The alignment section should have a default dropdown with options such ...
1
vote
1
answer
137
views
Fluent way (builder style) of creating a Mockito mock with method stubs
One of ways to create a Mockito mock in Java is to
create the mock
stubb the methods.
For instance like this:
// this code is just a imaginary proposal
private Properties emptyProperties() {
...
0
votes
1
answer
59
views
Kotlin: initializing vals within custom builder function
I created some custom data types and corresponding builders which are heavily used within unit tests. The general pattern looks somewhat like this:
@Test
fun testSomething(){
object {
val ...
1
vote
1
answer
108
views
Spring Boot Builder with abstract classes
I have a class called Property which is an abstract class and has the following properties:
@SuperBuilder
@Setter
@Getter
public abstract class Property {
private String id;
private String ...
0
votes
1
answer
47
views
I am using lombok builder in Data Provider Class but i am getting Data provider mismatch
This is my Provider method
@DataProvider(name = "loginDataSet")
public static Object[][] loginSet() {
return new Object[][]{
{
String....
0
votes
1
answer
114
views
Add the sum of an expression at the bottom of a Colum in Microsoft report builder
I have been at this for a few days off and on and I cannot figure it out.
I Have a row that does some calculation based on student population. IF the school is not named "Bad school" (not ...
0
votes
0
answers
55
views
How to handle large amount of data from array of pointer struct faster in Golang?
I want to create a CSV file from []*dto.Customer.
Getting all values and convert each struct values into a single string & then push into an array.
Finally write into string builder then convert ...
0
votes
1
answer
294
views
Create your own class from a template with GTK4, C and XML
I'm trying to test the example from the GNOME Developer Documentation.
https://developer.gnome.org/documentation/tutorials/widget-templates.html
But I seem to be doing something wrong, because I get ...
0
votes
1
answer
86
views
C# Make Builder Pattern Maintain Interface Capabilities
I'm trying to compose a builder pattern which is extended by implementing interfaces multiple times.
Here is a code snippet for what I'm trying to do.
namespace BuilderChaining
{
internal ...
0
votes
1
answer
185
views
Fluent Builder with asynchronous methods
I was working on developing a Fluent Builder and encountered the need to incorporate asynchronous methods without disrupting the chaining. How can I address this?
A fictional example to illustrate the ...
0
votes
0
answers
99
views
Builder Pattern in Typescript Similar to Java - chaining in parent class
I am trying to implement TicTacToe game in typescript. In this, the class HumanPlayer and BotPlayer inherit ab abstract class Player.
To create the instance of HumanPlayer and BotPlayer - using ...
0
votes
0
answers
32
views
How render more items form top and from bottom?
I need to render items in list form top and bottom without using listView because it will fill phone memory.Is anyway to do it?
I used the cacheExtent property but it only worked once, I want to use ...
0
votes
0
answers
37
views
On my C# program the code for my exe build button has the following bellow but for some reason i get error CS618, How can i fix this?
private void BuildBTN_Click(object sender, EventArgs e)
{
//Compile Button
// .net framework dependency version
ICodeCompiler codeCompiler = new CSharpCodeProvider(new ...
0
votes
1
answer
79
views
ADF Pipeline Expression Builder Regexreplace
I need to know how to formulate an ADF Pipeline Expression for regexreplace, supplying a parameter
@dataset().table_name.
I have the expression:
@regexreplace(@dataset().table_name, '[^a-zA-Z0-9_]', '...
0
votes
0
answers
29
views
Oracle Reports Builder RDF to PDF output, Some Spanish Characters being replaced automatically with special characters
Oracle Reports Builder RDF to PDF output, Some Spanish Characters being replaced automatically with special characters. Please suggest how when I copy spanish text from a MS-Word RTF file into a text ...
0
votes
0
answers
79
views
Power BI Report Builder - Multiple reports using same template and only replacing fields
The current project consists of producing multiple reports (e.g., report cards), but paginating them through the report builder.
The objective is to create multiple reports by selecting people's names ...
0
votes
0
answers
28
views
SSRS Report Builder DropDown Menus
Can we create a drop down by getting some fields from Dataset 1 and Dataset2.
That means,
DataSet1
MatterType
InjuryType
MatterNumber
DataSet2
WorkType
Address
I want to create a drop down list by ...
1
vote
1
answer
251
views
Implement an async builder pattern in Rust
I want to implement a future for a builder. This can be common for examples such as configuring a request via a builder, then sending it off.
I want to implement IntoFuture for a builder but I cannot ...
0
votes
1
answer
114
views
Builder pattern with setup correctness guaranteed at compile time
I have created a module to make HTTP requests that it's used like:
response, err := Get[ResponseType]("https://example.com").
Query("foo", "bar").
Header("Accept&...
0
votes
2
answers
52
views
Builder Pattern : Can our director deal with Concrete builders directly?
I was reading builder design pattern and have the following doubt - Why director cannot accept the concrete builder type reference ?
Suppose, we have a CarBuilder interface which implemented by 2 ...
0
votes
1
answer
105
views
Flutter gradient background for entire screens issue
I was trying to add gradient background to all screens at once so I found a good way but it's not working as expected !!
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This ...
1
vote
1
answer
171
views
Azure Api Builder with docker .env
I'm currently trying to use a .env file together with the dab-config.json in a docker container.
Since Azure recently published the option to use environments. I changed the dab-config.json by using ...
2
votes
1
answer
2k
views
Lombok @SuperBuilder - convert an object from one child class to another, preserving the parents' fields
I need to convert an instance of one class to a "sibling" class (both inheriting from the same parent) without explicitly setting common/parents' fields. The goal is to make this "...
0
votes
0
answers
119
views
Java return an implementation of a builder
I made a functional builder for a class which works like so
new ComponentStatus.Builder()
.with($ -> {
$.name = element.getName();
$.state = element.getState();
...
0
votes
0
answers
54
views
Report Builder output not grouping correctly
I've tried to use a small dataset to get the results I want before applying the same idea with a larger dataset that involves more complex SQL queries in report builder to group the outputs.
The ...