| Modifier | Constructor and Description |
|---|---|
protected |
PropertiesRule(RuleFactory ruleFactory) |
protected PropertiesRule(RuleFactory ruleFactory)
public com.sun.codemodel.JDefinedClass apply(String nodeName, com.fasterxml.jackson.databind.JsonNode node, com.sun.codemodel.JDefinedClass jclass, Schema schema)
For each property present within the properties node, this rule will invoke the 'property' rule provided by the given schema mapper.
apply in interface Rule<com.sun.codemodel.JDefinedClass,com.sun.codemodel.JDefinedClass>nodeName - the name of the node for which properties are being addednode - the properties node, containing property names and their
definitionjclass - the Java type which will have the given properties addedschema - the schema to which this schema rule (and the given node)
belongs.Copyright © 2014. All Rights Reserved.