| Modifier | Constructor and Description |
|---|---|
protected |
ObjectRule(RuleFactory ruleFactory,
ParcelableHelper parcelableHelper) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JType |
apply(String nodeName,
com.fasterxml.jackson.databind.JsonNode node,
com.sun.codemodel.JPackage _package,
Schema schema)
Applies this schema rule to take the required code generation steps.
|
protected ObjectRule(RuleFactory ruleFactory, ParcelableHelper parcelableHelper)
public com.sun.codemodel.JType apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, 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.
A new Java type will be created when this rule is applied, it is
annotated as Generated, it is given equals,
hashCode and toString methods and implements
Serializable.
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 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 © 2015. All rights reserved.