@Override public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException { if (v != null) { if (isRequired()) { v.property(this); } else { v.optionalProperty(this); } } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider) throws JsonMappingException { if (isRequired()) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException { if (v != null) { if (isRequired()) { v.property(this); } else { v.optionalProperty(this); } } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider) throws JsonMappingException { if (isRequired()) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider) throws JsonMappingException { if (isRequired()) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor v) throws JsonMappingException { if (v != null) { if (isRequired()) { v.property(this); } else { v.optionalProperty(this); } } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor) throws JsonMappingException { if (isRequired()) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor) throws JsonMappingException { if (isRequired()) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor v) throws JsonMappingException { if (v != null) { if (isRequired()) { v.property(this); } else { v.optionalProperty(this); } } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException { if (v != null) { if (isRequired()) { v.property(this); } else { v.optionalProperty(this); } } }
@Override public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor) throws JsonMappingException { if (objectVisitor != null) { if (isRequired()) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } } }
/** * Method called to handle appropriate type-specific visiting * over logical property this writer handles. * * @param objectVisitor ObjectVisitor which can receive the property * * @since 2.1 */ public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor) throws JsonMappingException { if (isRequired(objectVisitor.getProvider().getAnnotationIntrospector())) { objectVisitor.property(this); } else { objectVisitor.optionalProperty(this); } }
@Override public void acceptJsonFormatVisitor(final JsonFormatVisitorWrapper wrapper, final JavaType hint) throws JsonMappingException { final JsonObjectFormatVisitor visitor = wrapper.expectObjectFormat(hint); visitor.property(names.getAmount(), wrapper.getProvider().findValueSerializer(writer.getType()), wrapper.getProvider().constructType(writer.getType())); visitor.property(names.getCurrency(), wrapper.getProvider().findValueSerializer(CurrencyUnit.class), wrapper.getProvider().constructType(CurrencyUnit.class)); visitor.optionalProperty(names.getFormatted(), wrapper.getProvider().findValueSerializer(String.class), wrapper.getProvider().constructType(String.class)); }
@Override public void acceptJsonFormatVisitor(final JsonFormatVisitorWrapper wrapper, final JavaType hint) throws JsonMappingException { final JsonObjectFormatVisitor visitor = wrapper.expectObjectFormat(hint); visitor.property(names.getAmount(), wrapper.getProvider().findValueSerializer(writer.getType()), wrapper.getProvider().constructType(writer.getType())); visitor.property(names.getCurrency(), wrapper.getProvider().findValueSerializer(CurrencyUnit.class), wrapper.getProvider().constructType(CurrencyUnit.class)); visitor.optionalProperty(names.getFormatted(), wrapper.getProvider().findValueSerializer(String.class), wrapper.getProvider().constructType(String.class)); }