use of com.sun.codemodel.JDocComment in project jsonschema2pojo by joelittlejohn.
the class RequiredArrayRule method addJavaDoc.
private void addJavaDoc(JDocCommentable docCommentable) {
JDocComment javadoc = docCommentable.javadoc();
javadoc.append(REQUIRED_COMMENT_TEXT);
}
use of com.sun.codemodel.JDocComment in project jsonschema2pojo by joelittlejohn.
the class JavaNameRule method apply.
@Override
public JDocComment apply(String nodeName, JsonNode node, JsonNode parent, JDocCommentable generatableType, Schema currentSchema) {
JDocComment javaDoc = generatableType.javadoc();
javaDoc.append(String.format("%nCorresponds to the \"%s\" property.", nodeName));
return javaDoc;
}
Aggregations