Class ApikanaObjectRule

java.lang.Object
org.swisspush.apikana.jsonschema2pojo.ApikanaObjectRule
All Implemented Interfaces:
org.jsonschema2pojo.rules.Rule<com.sun.codemodel.JPackage,com.sun.codemodel.JType>

public class ApikanaObjectRule extends Object implements org.jsonschema2pojo.rules.Rule<com.sun.codemodel.JPackage,com.sun.codemodel.JType>
Applies the generation steps required for schemas of type "object".
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ApikanaObjectRule(org.jsonschema2pojo.rules.RuleFactory ruleFactory, org.jsonschema2pojo.util.ParcelableHelper parcelableHelper, org.jsonschema2pojo.util.ReflectionHelper reflectionHelper)
     
  • Method Summary

    Modifier and Type
    Method
    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, org.jsonschema2pojo.Schema schema)
    Applies this schema rule to take the required code generation steps.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ApikanaObjectRule

      protected ApikanaObjectRule(org.jsonschema2pojo.rules.RuleFactory ruleFactory, org.jsonschema2pojo.util.ParcelableHelper parcelableHelper, org.jsonschema2pojo.util.ReflectionHelper reflectionHelper)
  • Method Details

    • apply

      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, org.jsonschema2pojo.Schema schema)
      Applies this schema rule to take the required code generation steps.

      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.

      Specified by:
      apply in interface org.jsonschema2pojo.rules.Rule<com.sun.codemodel.JPackage,com.sun.codemodel.JType>