Skip to content

Commit

Permalink
Add GenerateMojo.DefaultBinding class
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Sep 14, 2023
1 parent b8270b3 commit 4091abe
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions jsonx-maven-plugin/src/main/java/org/jsonx/GenerateMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,42 @@ public class GenerateMojo extends JxMojo {
@Parameter(property="setBuilder", required=false)
private boolean setBuilder = true;

@Parameter(property="defaultBinding", required=false)
private DefaultBinding defaultBinding; // FIXME: Remove this.

public static class DefaultBinding {
public static class Number {
private String integer;
private String real;

public String getInteger() {
return this.integer;
}

public void setInteger(String integer) {
this.integer = integer;
}

public String getReal() {
return this.real;
}

public void setReal(String real) {
this.real = real;
}
}

private Number number;

public Number getNumber() {
return this.number;
}

public void setNumber(Number number) {
this.number = number;
}
}

private static void processConfiguration(final Settings.Builder builder, final Xpp3Dom root) throws MojoExecutionException {
for (int i = 0, i$ = root.getChildCount(); i < i$; ++i) { // [RA]
final Xpp3Dom child0 = root.getChild(i);
Expand Down

0 comments on commit 4091abe

Please sign in to comment.