| Modifier | Constructor and Description |
|---|---|
protected |
RequiredRule(RuleFactory ruleFactory) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JDocCommentable |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDocCommentable generatableType,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
protected RequiredRule(RuleFactory ruleFactory)
public com.sun.codemodel.JDocCommentable apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode parent, com.sun.codemodel.JDocCommentable generatableType, Schema schema)
The required rule simply adds a note to the JavaDoc comment to mark a property as required.
apply in interface Rule<com.sun.codemodel.JDocCommentable,com.sun.codemodel.JDocCommentable>nodeName - the name of the schema node for which this "required" rule has
been addednode - the "required" node, having a value true or
falseparent - the parent nodegeneratableType - the class or method which may be marked as "required"schema - the schema to which this schema rule (and the given node)
belongs.Copyright © 2019. All rights reserved.