當前位置: 首頁>>代碼示例>>Java>>正文


Java JsonUnwrapped類代碼示例

本文整理匯總了Java中com.fasterxml.jackson.annotation.JsonUnwrapped的典型用法代碼示例。如果您正苦於以下問題:Java JsonUnwrapped類的具體用法?Java JsonUnwrapped怎麽用?Java JsonUnwrapped使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


JsonUnwrapped類屬於com.fasterxml.jackson.annotation包,在下文中一共展示了JsonUnwrapped類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: isUnwrapped

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
private static boolean isUnwrapped(PropertyDescriptor propertyDescriptor, Field field) {
    if (field != null && field.isAnnotationPresent(JsonUnwrapped.class)) {
        return true;
    }

    Method readMethod = propertyDescriptor.getReadMethod();

    if (readMethod != null && readMethod.isAnnotationPresent(JsonUnwrapped.class)) {
        return true;
    }

    Method writeMethod = propertyDescriptor.getWriteMethod();

    if (writeMethod != null && writeMethod.isAnnotationPresent(JsonUnwrapped.class)) {
        return true;
    }

    return false;
}
 
開發者ID:bohnman,項目名稱:squiggly-filter-jackson,代碼行數:20,代碼來源:BeanInfoIntrospector.java

示例2: color

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
/**
 * The {@link Color} to display on the sidebar next to the {@link Attachment}.
 *
 * @return an {@link Optional} containing a {@link Color}
 * @see Color
 */
@Value.Default
@Nullable
@JsonUnwrapped
public Color color() {
    return null;
}
 
開發者ID:palantir,項目名稱:roboslack,代碼行數:13,代碼來源:Attachment.java

示例3: author

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
/**
 * The {@link Author} for this {@link Attachment}. It is displayed in a small grayed-out section at the top
 * before the main {@link Attachment} body.
 *
 * @return an {@link Optional} containing the {@link Author}
 */
@Value.Default
@Nullable
@JsonUnwrapped
public Author author() {
    return null;
}
 
開發者ID:palantir,項目名稱:roboslack,代碼行數:13,代碼來源:Attachment.java

示例4: title

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
/**
 * The {@link Title} for this {@link Attachment}. It is displayed as larger, bold text near the top before the main
 * {@link Attachment} body.
 *
 * @return an {@link Optional} containing the {@link Title}
 */
@Value.Default
@Nullable
@JsonUnwrapped
public Title title() {
    return null;
}
 
開發者ID:palantir,項目名稱:roboslack,代碼行數:13,代碼來源:Attachment.java

示例5: footer

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
/**
 * The {@link Footer} for this {@link Attachment}. This will appear below the body of the main message
 * {@link Attachment} in smaller, grayed-out text.
 *
 * @return an {@link Optional} containing the {@link Footer}
 */
@Value.Default
@Nullable
@JsonUnwrapped
public Footer footer() {
    return null;
}
 
開發者ID:palantir,項目名稱:roboslack,代碼行數:13,代碼來源:Attachment.java

示例6: getParameters

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
@JsonProperty("parameters")
@JsonUnwrapped
@XmlElement(name = "parameter")
@Nonnull
public List<ParameterDTO> getParameters() {
    return this;
}
 
開發者ID:tomtom-international,項目名稱:configuration-service,代碼行數:8,代碼來源:ParameterListDTO.java

示例7: getSearchResults

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
@JsonProperty("searchResults")
@JsonUnwrapped
@XmlElement(name = "searchResult")
@Nonnull
public List<SearchResultDTO> getSearchResults() {
    return this;
}
 
開發者ID:tomtom-international,項目名稱:configuration-service,代碼行數:8,代碼來源:SearchResultsDTO.java

示例8: addFieldToMap

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
private void addFieldToMap(Field field, ObjectContext objectContext,
                           Map<Field, ObjectContext> fieldContextMap, Set<Type> unwrappedTypes,
                           SchemaPropertyContext context) {
    if (objectContext.isApplicable(field, context)) {
        if (field.getAnnotation(JsonUnwrapped.class) != null) {
            fieldContextMap.putAll(getUnwrappedFieldsMap(field, objectContext, unwrappedTypes,
                    context));
        } else {
            fieldContextMap.put(field, objectContext);
        }
    }
}
 
開發者ID:Mercateo,項目名稱:rest-schemagen,代碼行數:13,代碼來源:SchemaPropertyGenerator.java

示例9: findUnwrappingNameTransformer

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
public NameTransformer findUnwrappingNameTransformer(AnnotatedMember paramAnnotatedMember)
{
  JsonUnwrapped localJsonUnwrapped = (JsonUnwrapped)paramAnnotatedMember.getAnnotation(JsonUnwrapped.class);
  if ((localJsonUnwrapped == null) || (!localJsonUnwrapped.enabled()))
    return null;
  return NameTransformer.simpleTransformer(localJsonUnwrapped.prefix(), localJsonUnwrapped.suffix());
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:8,代碼來源:JacksonAnnotationIntrospector.java

示例10: getLinkExtensions

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
@JsonUnwrapped
public DynaBean getLinkExtensions() {
    DynaBean dynaBean = new DynaBean();
    LinkedHashMap<String, String> linkExtensions = new LinkedHashMap<String, String>();
    linkExtensions.putAll(linkParams.toSingleValueMap());
    for (LinkParam linkParam : LinkParam.values()) {
        linkExtensions.remove(linkParam.paramName);
    }
    dynaBean.putAll(linkExtensions);
    return dynaBean;
}
 
開發者ID:dschulten,項目名稱:hydra-java,代碼行數:12,代碼來源:Affordance.java

示例11: getModel

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
@JsonUnwrapped
public NotFoundModel getModel() {
    return model;
}
 
開發者ID:minijax,項目名稱:minijax,代碼行數:5,代碼來源:JacksonBean.java

示例12: getModel2

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
@JsonUnwrapped(prefix = "pre", suffix = "suf")
public NotFoundModel getModel2() {
    return model2;
}
 
開發者ID:minijax,項目名稱:minijax,代碼行數:5,代碼來源:JacksonBean.java

示例13: getStatus

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
@JsonUnwrapped
Status getStatus();
 
開發者ID:ePages-de,項目名稱:spring-boot-readiness,代碼行數:3,代碼來源:StatusCheck.java

示例14: getData

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
/**
 * @return the data
 */
@JsonUnwrapped
public T getData() {
    return data;
}
 
開發者ID:ccfish86,項目名稱:sctalk,代碼行數:8,代碼來源:BaseModel.java

示例15: setData

import com.fasterxml.jackson.annotation.JsonUnwrapped; //導入依賴的package包/類
/**
 * @param data the data to set
 */
@JsonUnwrapped
public void setData(T data) {
    this.data = data;
}
 
開發者ID:ccfish86,項目名稱:sctalk,代碼行數:8,代碼來源:BaseModel.java


注:本文中的com.fasterxml.jackson.annotation.JsonUnwrapped類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。