You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@johnzon.apache.org by rm...@apache.org on 2022/08/08 17:17:28 UTC
[johnzon] branch master updated: Expose PojoGenerator#Attribute attributesfields to subclasses
This is an automated email from the ASF dual-hosted git repository.
rmannibucau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git
The following commit(s) were added to refs/heads/master by this push:
new cfdf37a5 Expose PojoGenerator#Attribute attributesfields to subclasses
cfdf37a5 is described below
commit cfdf37a5d16a42a0e8e254d61af7e5628cad82a2
Author: Romain Manni-Bucau <rm...@gmail.com>
AuthorDate: Mon Aug 8 19:17:23 2022 +0200
Expose PojoGenerator#Attribute attributesfields to subclasses
---
.../johnzon/jsonschema/generator/PojoGenerator.java | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
index f63761ba..5b02aed8 100644
--- a/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
+++ b/johnzon-jsonschema/src/main/java/org/apache/johnzon/jsonschema/generator/PojoGenerator.java
@@ -670,15 +670,27 @@ public class PojoGenerator {
}
protected static class Attribute {
- private final String javaName;
- private final String jsonName;
- private final String type;
+ protected final String javaName;
+ protected final String jsonName;
+ protected final String type;
protected Attribute(final String javaName, final String jsonName, final String type) {
this.javaName = javaName;
this.jsonName = jsonName;
this.type = type;
}
+
+ public String getJavaName() {
+ return javaName;
+ }
+
+ public String getJsonName() {
+ return jsonName;
+ }
+
+ public String getType() {
+ return type;
+ }
}
public static class Ref {