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 instanceClass,
Schema currentSchema)
Add whatever Java source is required to the given generatable to
represent this schema rule.
|
public com.sun.codemodel.JDefinedClass apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode parent, com.sun.codemodel.JDefinedClass instanceClass, Schema currentSchema)
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
instanceClass
- A code generation construct to which this rule should be
appliedcurrentSchema
- the schema to which this schema rule (and the given node)
belongs.Copyright © 2022. All rights reserved.