Java 类com.fasterxml.jackson.annotation.JsonRawValue 实例源码

项目:cukedoctor    文件:Step.java   
@JsonRawValue
public List<Output> getOutput() {
    return output;
}
项目:syndesis    文件:ModelData.java   
@JsonRawValue
@JsonProperty("data")
public String getDataAsJson() throws JsonProcessingException {
    if (json == null) {
        json = Json.mapper().writeValueAsString(data);
    }
    return json;
}
项目:graviteeio-access-management    文件:CommonModule.java   
@Override
public JsonDeserializer<?> createContextual(DeserializationContext ctx,
                                            BeanProperty property) throws JsonMappingException {
    if (property != null && property.getMember().getAnnotation(JsonRawValue.class) != null) {
        return this;
    }
    return new StringDeserializer();
}
项目:mojito    文件:JsonRawStringAspect.java   
/**
 * TODO(P2) try to do this with aspect @DeclareError
  *
 * Checks that the method annotated with {@link JsonRawString} also has the
 * {@link JsonRawValue} for Jackson to actually serialize as expected.
 *
 * @param pjp
 */
private void checkMethodHasJsonRawValueAnnotation(ProceedingJoinPoint pjp) {

    MethodSignature methodSignature = (MethodSignature) pjp.getSignature();
    Method targetMethod = methodSignature.getMethod();

    if (targetMethod.getAnnotation(JsonRawValue.class) == null) {
        throw new RuntimeException("The method annotated with @JsonRawString must also be annotated with @JsonRawValue");
    }
}
项目:syndesis-rest    文件:ModelData.java   
@JsonRawValue
@JsonProperty("data")
public String getDataAsJson() throws JsonProcessingException {
    if (json == null) {
        json = Json.mapper().writeValueAsString(data);
    }
    return json;
}
项目:spring-async    文件:ApiResponse.java   
@JsonRawValue
public String getBody() {
    if(body != null && body.trim().isEmpty()) {
        return null;
    }
    return body;
}
项目:dhis2-core    文件:MetadataAudit.java   
@JsonProperty
@JsonRawValue
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public String getValue()
{
    return value;
}
项目:QuizUpWinner    文件:JacksonAnnotationIntrospector.java   
public Object findSerializer(Annotated paramAnnotated)
{
  JsonSerialize localJsonSerialize = (JsonSerialize)paramAnnotated.getAnnotation(JsonSerialize.class);
  if (localJsonSerialize != null)
  {
    Class localClass = localJsonSerialize.using();
    if (localClass != JsonSerializer.None.class)
      return localClass;
  }
  JsonRawValue localJsonRawValue = (JsonRawValue)paramAnnotated.getAnnotation(JsonRawValue.class);
  if ((localJsonRawValue != null) && (localJsonRawValue.value()))
    return new RawSerializer(paramAnnotated.getRawType());
  return null;
}
项目:data-prep    文件:JsonAsStringBeanDeserializerModifier.java   
@Override
public BeanDeserializerBuilder updateBuilder(DeserializationConfig config, BeanDescription beanDesc,
        BeanDeserializerBuilder builder) {
    Iterator<SettableBeanProperty> it = builder.getProperties();
    while (it.hasNext()) {
        SettableBeanProperty p = it.next();
        if (p.getAnnotation(JsonRawValue.class) != null) {
            builder.addOrReplaceProperty(p.withValueDeserializer(JsonAsStringDeserializer.INSTANCE), true);
        }
    }
    return builder;
}
项目:streamsx.jmxclients    文件:AllJobMetrics.java   
@JsonRawValue
public String getAllMetrics() {
    return allMetrics;
}
项目:syndesis    文件:ModelData.java   
@JsonRawValue
@JsonProperty("data")
public void setDataFromJson(JsonNode json) throws JsonProcessingException {
    this.data = null;
    this.json = Json.mapper().writeValueAsString(json);
}
项目:eventapis    文件:PublishedEventWrapper.java   
@JsonGetter
@JsonRawValue
public String getEvent() {
    return event;
}
项目:reporting-tool    文件:RawJson.java   
@JsonValue
@JsonRawValue
public String getValue() {
    return value;
}
项目:stallion-core    文件:ContextView.java   
@JsonView(RestrictedViews.Public.class)
@JsonRawValue
@JsonProperty
public String getMe() {
    return me;
}
项目:mojito    文件:PollableTask.java   
@JsonProperty(value = "message")
@JsonRawValue
@JsonRawString
public String getMessageAsJson() {
    return message;
}
项目:mojito    文件:PollableTask.java   
@JsonProperty(value = "errorMessage")
@JsonRawValue
@JsonRawString
public String getErrorMessageAsJson() {
    return errorMessage;
}
项目:mojito    文件:JsonRawStringAspectNotAnnotated.java   
@JsonRawValue
public String getJsonString() {
    return "{\"a\": 1, \"b\": [1,2,3]}";
}
项目:mojito    文件:JsonRawStringAspectNotAnnotated.java   
@JsonRawValue
public String getNonJsonString() {
    return "This is a simple string that doesn't contain JSON";
}
项目:mojito    文件:JsonRawStringAspectAnnotated.java   
@JsonRawValue
@JsonRawString
public String getJsonString() {
    return "{\"a\": 1, \"b\": [1,2,3]}";
}
项目:mojito    文件:JsonRawStringAspectAnnotated.java   
@JsonRawValue
@JsonRawString
public String getNonJsonString() {
    return "This is a simple string that doesn't contain JSON";
}
项目:bms-pushnotifications-serversdk-java    文件:FCM.java   
@JsonRawValue
public final JsonNode getPayload() {
    return payload;
}
项目:bms-pushnotifications-serversdk-java    文件:APNs.java   
@JsonRawValue
public final JsonNode getPayload() {
    return payload;
}
项目:bms-pushnotifications-serversdk-java    文件:ChromeWeb.java   
@JsonRawValue
public final JsonNode getPayload() {
    return this.payload;
}
项目:bms-pushnotifications-serversdk-java    文件:FirefoxWeb.java   
@JsonRawValue
public final JsonNode getPayload() {
    return this.payload;
}
项目:bms-pushnotifications-serversdk-java    文件:ChromeAppExt.java   
@JsonRawValue
public final JsonNode getPayload() {
    return payload;
}
项目:syndesis-rest    文件:ModelData.java   
@JsonRawValue
@JsonProperty("data")
public void setDataFromJson(JsonNode json) throws JsonProcessingException {
    this.data = null;
    this.json = Json.mapper().writeValueAsString(json);
}
项目:easyrec_major    文件:Item.java   
@XmlElement(nillable = true)
@JsonRawValue
public String getProfileData() {
    return profileData;
}
项目:product-emm    文件:Operation.java   
@JsonRawValue
public Object getPayLoad() {
    return payLoad;
}
项目:guja    文件:DataTable.java   
@JsonRawValue
@Override
public Object getV() {
  return super.getV();
}
项目:data-prep    文件:ExportParameters.java   
/**
 * @return The filter (as raw JSON) for the export.
 * @see org.talend.dataprep.api.filter.FilterService
 */
@JsonRawValue
public String getFilter() {
    return filter == null ? null : filter.toString();
}
项目:data-prep    文件:AggregationParameters.java   
/**
 * @return The filter (as raw JSON) for the aggregation.
 * @see org.talend.dataprep.api.filter.FilterService
 */
@JsonRawValue
public String getFilter() {
    return filter == null ? null : filter.toString();
}
项目:tf-exploitation-server    文件:DescribeConceptController.java   
@JsonValue
@JsonRawValue
public String value() {
  return value;
}
项目:spring-cloud-config    文件:VaultEnvironmentRepository.java   
@JsonRawValue
public String getData() {
    return data == null ? null : data.toString();
}
项目:saos    文件:DumpEnrichmentTagsView.java   
@JsonRawValue
public String getValue() {
    return value;
}
项目:cloudbreak    文件:ClusterResponse.java   
@JsonRawValue
public String getCluster() {
    return cluster;
}
项目:cloudbreak    文件:ClusterResponse.java   
@JsonRawValue
public String getBlueprintCustomProperties() {
    return blueprintCustomProperties;
}
项目:cloudbreak    文件:ClusterRequest.java   
@JsonRawValue
public String getBlueprintCustomProperties() {
    return blueprintCustomProperties;
}
项目:cloudbreak    文件:AmbariV2Request.java   
@JsonRawValue
public String getBlueprintCustomProperties() {
    return blueprintCustomProperties;
}
项目:cloudbreak    文件:ClusterTemplateBase.java   
@JsonRawValue
public String getTemplate() {
    return template;
}
项目:gwt-jackson    文件:JsonRawValueTester.java   
@JsonProperty("raw")
@JsonRawValue
public T foobar() { return _value; }