| Modifier | Constructor and Description |
|---|---|
protected |
ObjectRule(RuleFactory ruleFactory,
ParcelableHelper parcelableHelper) |
| Modifier and Type | Method and Description |
|---|---|
JType |
apply(String nodeName,
JsonNode node,
JPackage _package,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
protected ObjectRule(RuleFactory ruleFactory, ParcelableHelper parcelableHelper)
public JType apply(String nodeName, JsonNode node, 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<JPackage,JType>nodeName - the name of the JSON schema nodenode - the JSON schema node that has caused this rule to be applied_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 © 2017. All rights reserved.