Package me.snowdrop.istio.annotator
Class IstioTypeAnnotator
- java.lang.Object
-
- org.jsonschema2pojo.AbstractAnnotator
-
- org.jsonschema2pojo.AbstractTypeInfoAwareAnnotator
-
- org.jsonschema2pojo.Jackson2Annotator
-
- me.snowdrop.istio.annotator.IstioTypeAnnotator
-
- All Implemented Interfaces:
org.jsonschema2pojo.Annotator
public class IstioTypeAnnotator extends org.jsonschema2pojo.Jackson2Annotator- Author:
- Christophe Laprun
-
-
Field Summary
Fields Modifier and Type Field Description static StringHANDLER_PARAMS_FQNstatic StringHANDLER_SPEC_DESERIALIZER_FQNstatic StringINSTANCE_PARAMS_FQNstatic StringINSTANCE_SPEC_DESERIALIZER_FQNstatic StringSUPPORTED_ADAPTERS_FQNstatic StringSUPPORTED_TEMPLATES_FQN
-
Constructor Summary
Constructors Constructor Description IstioTypeAnnotator(org.jsonschema2pojo.GenerationConfig generationConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleMixerResourceSpec(com.sun.codemodel.JDefinedClass clazz, com.sun.codemodel.JClass paramsClass, com.sun.codemodel.JClass specDeserializerClass, String specClassName, String supportedResourcesEnumClass, String polymorphicTypeField)voidpropertyField(com.sun.codemodel.JFieldVar field, com.sun.codemodel.JDefinedClass clazz, String propertyName, com.fasterxml.jackson.databind.JsonNode propertyNode)voidpropertyGetter(com.sun.codemodel.JMethod getter, com.sun.codemodel.JDefinedClass clazz, String propertyName)voidpropertyOrder(com.sun.codemodel.JDefinedClass clazz, com.fasterxml.jackson.databind.JsonNode propertiesNode)voidpropertySetter(com.sun.codemodel.JMethod setter, com.sun.codemodel.JDefinedClass clazz, String propertyName)voidtypeInfo(com.sun.codemodel.JDefinedClass clazz, com.fasterxml.jackson.databind.JsonNode node)-
Methods inherited from class org.jsonschema2pojo.Jackson2Annotator
additionalPropertiesField, addJsonTypeInfoAnnotation, anyGetter, anySetter, dateField, dateTimeField, enumConstant, enumCreatorMethod, enumValueMethod, isAdditionalPropertiesSupported, propertyInclusion, timeField
-
-
-
-
Field Detail
-
INSTANCE_PARAMS_FQN
public static final String INSTANCE_PARAMS_FQN
- See Also:
- Constant Field Values
-
HANDLER_PARAMS_FQN
public static final String HANDLER_PARAMS_FQN
- See Also:
- Constant Field Values
-
INSTANCE_SPEC_DESERIALIZER_FQN
public static final String INSTANCE_SPEC_DESERIALIZER_FQN
- See Also:
- Constant Field Values
-
HANDLER_SPEC_DESERIALIZER_FQN
public static final String HANDLER_SPEC_DESERIALIZER_FQN
- See Also:
- Constant Field Values
-
SUPPORTED_TEMPLATES_FQN
public static final String SUPPORTED_TEMPLATES_FQN
- See Also:
- Constant Field Values
-
SUPPORTED_ADAPTERS_FQN
public static final String SUPPORTED_ADAPTERS_FQN
- See Also:
- Constant Field Values
-
-
Method Detail
-
typeInfo
public void typeInfo(com.sun.codemodel.JDefinedClass clazz, com.fasterxml.jackson.databind.JsonNode node)- Specified by:
typeInfoin interfaceorg.jsonschema2pojo.Annotator- Overrides:
typeInfoin classorg.jsonschema2pojo.AbstractTypeInfoAwareAnnotator
-
propertyOrder
public void propertyOrder(com.sun.codemodel.JDefinedClass clazz, com.fasterxml.jackson.databind.JsonNode propertiesNode)- Specified by:
propertyOrderin interfaceorg.jsonschema2pojo.Annotator- Overrides:
propertyOrderin classorg.jsonschema2pojo.Jackson2Annotator
-
handleMixerResourceSpec
public void handleMixerResourceSpec(com.sun.codemodel.JDefinedClass clazz, com.sun.codemodel.JClass paramsClass, com.sun.codemodel.JClass specDeserializerClass, String specClassName, String supportedResourcesEnumClass, String polymorphicTypeField)
-
propertyField
public void propertyField(com.sun.codemodel.JFieldVar field, com.sun.codemodel.JDefinedClass clazz, String propertyName, com.fasterxml.jackson.databind.JsonNode propertyNode)- Specified by:
propertyFieldin interfaceorg.jsonschema2pojo.Annotator- Overrides:
propertyFieldin classorg.jsonschema2pojo.Jackson2Annotator
-
propertyGetter
public void propertyGetter(com.sun.codemodel.JMethod getter, com.sun.codemodel.JDefinedClass clazz, String propertyName)- Specified by:
propertyGetterin interfaceorg.jsonschema2pojo.Annotator- Overrides:
propertyGetterin classorg.jsonschema2pojo.Jackson2Annotator
-
propertySetter
public void propertySetter(com.sun.codemodel.JMethod setter, com.sun.codemodel.JDefinedClass clazz, String propertyName)- Specified by:
propertySetterin interfaceorg.jsonschema2pojo.Annotator- Overrides:
propertySetterin classorg.jsonschema2pojo.Jackson2Annotator
-
-