| Constructor and Description |
|---|
ValidRule(RuleFactory ruleFactory) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JFieldVar |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.sun.codemodel.JFieldVar field,
Schema currentSchema)
Add whatever Java source is required to the given generatable to
represent this schema rule.
|
public ValidRule(RuleFactory ruleFactory)
public com.sun.codemodel.JFieldVar apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.sun.codemodel.JFieldVar field, Schema currentSchema)
Ruleapply in interface Rule<com.sun.codemodel.JFieldVar,com.sun.codemodel.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 © 2016. All rights reserved.