| Modifier | Constructor and Description |
|---|---|
protected |
ObjectRule(RuleFactory ruleFactory,
ParcelableHelper parcelableHelper,
ReflectionHelper reflectionHelper) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JType |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.fasterxml.jackson.databind.JsonNode parent,
com.sun.codemodel.JPackage _package,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
protected ObjectRule(RuleFactory ruleFactory, ParcelableHelper parcelableHelper, ReflectionHelper reflectionHelper)
public com.sun.codemodel.JType apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.databind.JsonNode parent, com.sun.codemodel.JPackage _package, Schema schema)
When this rule is applied for schemas of type object, the properties of
the schema are used to generate a new Java class and determine its
characteristics. See other implementers of Rule for details.
apply in interface Rule<com.sun.codemodel.JPackage,com.sun.codemodel.JType>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_package - A code generation construct to which this rule should be
appliedschema - the schema to which this schema rule (and the given node)
belongs.Copyright © 2019. All rights reserved.