@JsonProperty @JsonRawValue public String getConnectorOutputMetadata() { return connectorOutputMetadata; }
@Override public Object findSerializer(Annotated a) { JsonSerialize ann = _findAnnotation(a, JsonSerialize.class); if (ann != null) { @SuppressWarnings("rawtypes") Class<? extends JsonSerializer> serClass = ann.using(); if (serClass != JsonSerializer.None.class) { return serClass; } } /* 18-Oct-2010, tatu: [JACKSON-351] @JsonRawValue handled just here, for now; * if we need to get raw indicator from other sources need to add * separate accessor within {@link AnnotationIntrospector} interface. */ JsonRawValue annRaw = _findAnnotation(a, JsonRawValue.class); if ((annRaw != null) && annRaw.value()) { // let's construct instance with nominal type: Class<?> cls = a.getRawType(); return new RawSerializer<Object>(cls); } return null; }
@JsonRawValue private Object source;
@Override public Object findSerializer(Annotated a) { JsonSerialize ann = a.getAnnotation(JsonSerialize.class); if (ann != null) { Class<? extends JsonSerializer<?>> serClass = ann.using(); if (serClass != JsonSerializer.None.class) { return serClass; } } /* 18-Oct-2010, tatu: [JACKSON-351] @JsonRawValue handled just here, for now; * if we need to get raw indicator from other sources need to add * separate accessor within {@link AnnotationIntrospector} interface. */ JsonRawValue annRaw = a.getAnnotation(JsonRawValue.class); if ((annRaw != null) && annRaw.value()) { // let's construct instance with nominal type: Class<?> cls = a.getRawType(); return new RawSerializer<Object>(cls); } return null; }
public class BitfinexOfferStatusRequest { @JsonProperty("request") protected String request; @JsonProperty("nonce") protected String nonce; @JsonProperty("order_id") @JsonRawValue private long orderId; public BitfinexOfferStatusRequest(String nonce, long orderId) { this.request = "/v1/offer/status"; this.orderId = orderId; this.nonce = nonce; } public String getOrderId() { return String.valueOf(orderId); } }
public class BitfinexCancelOfferRequest { @JsonProperty("request") protected String request; @JsonProperty("nonce") protected String nonce; @JsonProperty("offer_id") @JsonRawValue private long offerId; public BitfinexCancelOfferRequest(String nonce, long offerId) { this.request = "/v1/offer/cancel"; this.nonce = nonce; this.offerId = offerId; } public String getOrderId() { return String.valueOf(offerId); } }
public class BitfinexOrdersHistoryRequest { @JsonProperty("request") protected String request; @JsonProperty("nonce") protected String nonce; @JsonProperty("limit") @JsonRawValue private long limit; /** * Constructor * * @param nonce * @param limit */ public BitfinexOrdersHistoryRequest(String nonce, long limit) { this.request = "/v1/orders/hist"; this.limit = limit; this.nonce = nonce; } }
@JsonRawValue private long orderId;
@JsonRawValue private long orderId;
@JsonRawValue private long orderId;
@JsonRawValue private long orderId;
private int status; @JsonRawValue private Object error;
@JsonRawValue protected String options;
@JsonRawValue protected String options;
@Getter @Setter @NoArgsConstructor @ToString @EqualsAndHashCode @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class Event implements Serializable { private static final long serialVersionUID = 2840081172778887899L; @NotNull @NotBlank private String businessType; @NotNull @NotBlank @JsonRawValue private String payload; @NotNull @NotBlank private String guid; }
@Getter @Setter @NoArgsConstructor @ToString @EqualsAndHashCode(callSuper = true) @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class EventPublisher extends BasicDomain { private static final long serialVersionUID = 2840081172778887899L; @NotNull @NotBlank private String businessType; @NotNull private EventStatus eventStatus; @NotNull @JsonRawValue private String payload; @NotNull private Integer lockVersion; @NotNull @NotBlank private String guid; }
@JsonRawValue protected String params;
@JsonRawValue protected String options;
@JsonRawValue abstract Object getExample(); }
/** * Returns an JSON serialized representation of this pointer. * * @return an JSON serialized representation of this pointer */ @JsonRawValue public String getJson(); }