Expose PojoGenerator#Attribute attributesfields to subclasses
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 f63761b..5b02aed 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 @@
}
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 {