Modifier and Type | Field and Description |
---|---|
static String |
REQUIRED_COMMENT_TEXT |
Modifier | Constructor and Description |
---|---|
protected |
RequiredArrayRule(RuleFactory ruleFactory) |
Modifier and Type | Method and Description |
---|---|
com.sun.codemodel.JDefinedClass |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JDefinedClass jclass,
Schema schema)
Add whatever Java source is required to the given generatable to
represent this schema rule.
|
public static final String REQUIRED_COMMENT_TEXT
protected RequiredArrayRule(RuleFactory ruleFactory)
public com.sun.codemodel.JDefinedClass apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode parent, com.sun.codemodel.JDefinedClass jclass, Schema schema)
Rule
apply
in interface Rule<com.sun.codemodel.JDefinedClass,com.sun.codemodel.JDefinedClass>
nodeName
- the name of the JSON schema nodenode
- the JSON schema node that has caused this rule to be appliedparent
- the JSON parent of node
jclass
- A code generation construct to which this rule should be
appliedschema
- the schema to which this schema rule (and the given node)
belongs.Copyright © 2022. All rights reserved.