T
- The type of source code item on which this rule can operateR
- The type of the source code item generated by this rulepublic interface Rule<T,R>
Modifier and Type | Method and Description |
---|---|
R |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
T generatableType,
Schema currentSchema)
Add whatever Java source is required to the given generatable to
represent this schema rule.
|
R apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, T generatableType, Schema currentSchema)
nodeName
- the name of the JSON schema nodenode
- the JSON schema node that has caused this rule to be appliedgeneratableType
- A code generation construct to which this rule should be
appliedcurrentSchema
- the schema to which this schema rule (and the given node)
belongs.Copyright © 2015. All rights reserved.