public class JuneauPojoAnnotator
extends org.jsonschema2pojo.AbstractAnnotator
Constructor and Description |
---|
JuneauPojoAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
anyGetter(com.sun.codemodel.JMethod getter)
Add the necessary annotation to mark a Java method as the getter for
additional JSON property values that do not match any of the other
property names found in the bean.
|
void |
anySetter(com.sun.codemodel.JMethod setter)
Add the necessary annotation to mark a Java method as the setter for
additional JSON property values that do not match any of the other
property names found in the bean.
|
void |
propertyField(com.sun.codemodel.JFieldVar field,
com.sun.codemodel.JDefinedClass clazz,
String propertyName,
com.fasterxml.jackson.databind.JsonNode propertyNode)
Add the necessary annotation to associate a Java field with a
JSON property
|
void |
propertyGetter(com.sun.codemodel.JMethod getter,
String propertyName)
Add the necessary annotation to mark a Java method as the getter for a
JSON property
|
void |
propertySetter(com.sun.codemodel.JMethod setter,
String propertyName)
Add the necessary annotation to mark a Java method as the setter for a
JSON property
|
public void propertyField(com.sun.codemodel.JFieldVar field, com.sun.codemodel.JDefinedClass clazz, String propertyName, com.fasterxml.jackson.databind.JsonNode propertyNode)
propertyField
in interface org.jsonschema2pojo.Annotator
propertyField
in class org.jsonschema2pojo.AbstractAnnotator
field
- the field that holds the value of the given JSON propertypropertyName
- the name of the JSON property that this field holdspublic void propertyGetter(com.sun.codemodel.JMethod getter, String propertyName)
propertyGetter
in interface org.jsonschema2pojo.Annotator
propertyGetter
in class org.jsonschema2pojo.AbstractAnnotator
getter
- the method that will be used to get the value of the given
JSON propertypropertyName
- the name of the JSON property that this getter getspublic void propertySetter(com.sun.codemodel.JMethod setter, String propertyName)
propertySetter
in interface org.jsonschema2pojo.Annotator
propertySetter
in class org.jsonschema2pojo.AbstractAnnotator
setter
- the method that will be used to set the value of the given
JSON propertypropertyName
- the name of the JSON property that this setter setspublic void anyGetter(com.sun.codemodel.JMethod getter)
anyGetter
in interface org.jsonschema2pojo.Annotator
anyGetter
in class org.jsonschema2pojo.AbstractAnnotator
getter
- the method that will be used to get the values of additional
propertiespublic void anySetter(com.sun.codemodel.JMethod setter)
anySetter
in interface org.jsonschema2pojo.Annotator
anySetter
in class org.jsonschema2pojo.AbstractAnnotator
setter
- the method that will be used to set the values of additional
propertiesCopyright © 2017 The Apache Software Foundation. All rights reserved.