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

项目:squiggly-filter-jackson    文件:BeanInfoIntrospector.java   
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;
}
项目:roboslack    文件:Attachment.java   
/**
 * 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;
}
项目:roboslack    文件:Attachment.java   
/**
 * 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;
}
项目:roboslack    文件:Attachment.java   
/**
 * 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;
}
项目:roboslack    文件:Attachment.java   
/**
 * 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;
}
项目:configuration-service    文件:ParameterListDTO.java   
@JsonProperty("parameters")
@JsonUnwrapped
@XmlElement(name = "parameter")
@Nonnull
public List<ParameterDTO> getParameters() {
    return this;
}
项目:configuration-service    文件:SearchResultsDTO.java   
@JsonProperty("searchResults")
@JsonUnwrapped
@XmlElement(name = "searchResult")
@Nonnull
public List<SearchResultDTO> getSearchResults() {
    return this;
}
项目:rest-schemagen    文件:SchemaPropertyGenerator.java   
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);
        }
    }
}
项目:QuizUpWinner    文件:JacksonAnnotationIntrospector.java   
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());
}
项目:hydra-java    文件:Affordance.java   
@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;
}
项目:minijax    文件:JacksonBean.java   
@JsonUnwrapped
public NotFoundModel getModel() {
    return model;
}
项目:minijax    文件:JacksonBean.java   
@JsonUnwrapped(prefix = "pre", suffix = "suf")
public NotFoundModel getModel2() {
    return model2;
}
项目:spring-boot-readiness    文件:StatusCheck.java   
@JsonUnwrapped
Status getStatus();
项目:sctalk    文件:BaseModel.java   
/**
 * @return the data
 */
@JsonUnwrapped
public T getData() {
    return data;
}
项目:sctalk    文件:BaseModel.java   
/**
 * @param data the data to set
 */
@JsonUnwrapped
public void setData(T data) {
    this.data = data;
}
项目:dremio-oss    文件:UserForm.java   
@JsonCreator
public UserForm(@JsonUnwrapped User userConfig,
                @JsonProperty("password") String password) {
  this.userConfig = userConfig;
  this.password = password;
}
项目:dremio-oss    文件:UserForm.java   
@JsonUnwrapped
public User getUserConfig() {
  return userConfig;
}
项目:squiggly-filter-jackson    文件:Outer.java   
@JsonUnwrapped
public void setInner(Inner inner) {
    this.inner = inner;
}
项目:rug-resolver    文件:Manifest.java   
@JsonProperty
@JsonUnwrapped
public Map<String, Object> metadata() {
    return metadata;
}
项目:microservice-dojo    文件:NestedContentResource.java   
@JsonUnwrapped
public Resources<T> getNested() {
  return this.nested;
}
项目:timely    文件:Metric.java   
@JsonUnwrapped
public Value getValue() {
    return value;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@JsonUnwrapped
public Object getContent() {
    return this.content;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:Health.java   
/**
 * Return the status of the health.
 * @return the status (never {@code null})
 */
@JsonUnwrapped
public Status getStatus() {
    return this.status;
}
项目:platypus-kb-lucene    文件:JsonLdRoot.java   
@JsonCreator
JsonLdRoot(@JsonProperty("@context") Context context, @JsonUnwrapped T content) {
    this.context = context;
    this.content = content;
}
项目:platypus-kb-lucene    文件:JsonLdRoot.java   
@JsonUnwrapped
public T getContent() {
    return content;
}
项目:spring-data-rest-android    文件:Jackson2HalModule.java   
@JsonUnwrapped
public Link getLink() {
    return link;
}
项目:spring-data-rest-android    文件:Resource.java   
/**
     * Returns the underlying entity.
     * 
     * @return the content
     */
    @JsonUnwrapped
//  @XmlAnyElement
    public T getContent() {
        return content;
    }
项目:spring-boot-concourse    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@JsonUnwrapped
public Object getContent() {
    return this.content;
}
项目:spring-boot-concourse    文件:Health.java   
/**
 * Return the status of the health.
 * @return the status (never {@code null})
 */
@JsonUnwrapped
public Status getStatus() {
    return this.status;
}
项目:restdocs-wiremock    文件:NestedContentResource.java   
@JsonUnwrapped
public Resources<T> getNested() {
    return this.nested;
}
项目:moserp    文件:HateoasResource.java   
@JsonUnwrapped
public T getContent() {
    return content;
}
项目:contestparser    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@JsonUnwrapped
public Object getContent() {
    return this.content;
}
项目:contestparser    文件:Health.java   
/**
 * Return the status of the health.
 * @return the status (never {@code null})
 */
@JsonUnwrapped
public Status getStatus() {
    return this.status;
}
项目:sqp    文件:ColumnMetadata.java   
/**
 * TypeDescription of the column's type. Gets unwrapped when used by a Jackson object encoder.
 * @return The column's type description
 */
@JsonUnwrapped
public TypeDescription getType() {
    return _type;
}
项目:weixin-sdk    文件:Departments.java   
@JsonProperty("department")
@JsonUnwrapped
public List<Department> getDepartments() {
    return departments;
}
项目:yona-server    文件:UserActivityController.java   
@JsonUnwrapped
public ActivityDto getDto()
{
    return dto;
}
项目:yona-server    文件:UserDto.java   
@JsonUnwrapped
@JsonProperty(access = Access.READ_ONLY)
public UserPrivateDataBaseDto getPrivateData()
{
    return privateData;
}
项目:hydra-java    文件:ResourceMixin.java   
@Override
@JsonSerialize(using = LinkListSerializer.class)
@JsonUnwrapped
public List<Link> getLinks() {
    return super.getLinks();
}
项目:hydra-java    文件:PagedResourcesMixin.java   
@Override
@JsonSerialize(using = LinkListSerializer.class)
@JsonUnwrapped
public List<Link> getLinks() {
    return super.getLinks();
}
项目:hydra-java    文件:ResourceSupportMixin.java   
@Override
@JsonSerialize(using = LinkListSerializer.class)
@JsonUnwrapped
public List<Link> getLinks() {
    return super.getLinks();
}