| Modifier | Constructor and Description |
|---|---|
protected |
MinLengthMaxLengthRule(RuleFactory ruleFactory) |
| Modifier and Type | Method and Description |
|---|---|
JFieldVar |
apply(String nodeName,
JsonNode node,
JFieldVar field,
Schema currentSchema)
Add whatever Java source is required to the given generatable to
represent this schema rule.
|
protected MinLengthMaxLengthRule(RuleFactory ruleFactory)
public JFieldVar apply(String nodeName, JsonNode node, JFieldVar field, Schema currentSchema)
Ruleapply in interface Rule<JFieldVar,JFieldVar>nodeName - the name of the JSON schema nodenode - the JSON schema node that has caused this rule to be appliedfield - A code generation construct to which this rule should be
appliedcurrentSchema - the schema to which this schema rule (and the given node)
belongs.Copyright © 2017. All rights reserved.