当前位置: 首页>>代码示例>>Java>>正文


Java JacksonXmlElementWrapper类代码示例

本文整理汇总了Java中com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper的典型用法代码示例。如果您正苦于以下问题:Java JacksonXmlElementWrapper类的具体用法?Java JacksonXmlElementWrapper怎么用?Java JacksonXmlElementWrapper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JacksonXmlElementWrapper类属于com.fasterxml.jackson.dataformat.xml.annotation包,在下文中一共展示了JacksonXmlElementWrapper类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getOrganisationUnits

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "organisationUnits", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "organisationUnit", namespace = DxfNamespaces.DXF_2_0 )
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id")
@JsonIdentityReference(alwaysAsId=true)
public Set<OrganisationUnit> getOrganisationUnits()
{
    return organisationUnits;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:10,代码来源:Option.java

示例2: getUsers

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "users", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "userObject", namespace = DxfNamespaces.DXF_2_0 )
public List<User> getUsers()
{
    List<User> users = new ArrayList<>();

    for ( UserCredentials userCredentials : members )
    {
        if ( userCredentials.getUserInfo() != null )
        {
            users.add( userCredentials.getUserInfo() );
        }
    }

    return users;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:19,代码来源:UserAuthorityGroup.java

示例3: setHandlerConfigList

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JacksonXmlProperty(localName = "handler")
@JacksonXmlElementWrapper(useWrapping = false)
public void setHandlerConfigList(List<HandlerConfig> handlerConfigList) {
  for (HandlerConfig handlerConfig : handlerConfigList) {
    handlerClassMap.put(handlerConfig.getHandlerId(), handlerConfig.getClazz());
  }
}
 
开发者ID:apache,项目名称:incubator-servicecomb-java-chassis,代码行数:8,代码来源:Config.java

示例4: getObjectReports

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "objectReports", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "objectReport", namespace = DxfNamespaces.DXF_2_0 )
public List<ObjectReport> getObjectReports()
{
    List<ObjectReport> objectReports = new ArrayList<>();
    objectReportMap.values().forEach( objectReports::add );

    return objectReports;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:11,代码来源:TypeReport.java

示例5: getVisits

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
@JsonView({OwnerJsonView.Default.class, PetJsonView.class})
@JacksonXmlElementWrapper(localName = "visits")
@JacksonXmlProperty(localName = "visit")
public Set<Visit> getVisits() {
  return visits;
}
 
开发者ID:puncha,项目名称:petclinic,代码行数:9,代码来源:Pet.java

示例6: getGroups

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty( value = "groups" )
@JacksonXmlElementWrapper( localName = "groups", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "group", namespace = DxfNamespaces.DXF_2_0 )
public List<Group> getGroups()
{
    return groups;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:Form.java

示例7: getCategories

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty( value = "categories" )
@JacksonXmlElementWrapper( localName = "categories", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "category", namespace = DxfNamespaces.DXF_2_0 )
public List<Category> getCategories()
{
    return categories;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:CategoryCombo.java

示例8: getProgramMessages

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "programMessages", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "programMessage", namespace = DxfNamespaces.DXF_2_0 )
public List<ProgramMessage> getProgramMessages()
{
    return programMessages;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:ProgramMessageBatch.java

示例9: getDataSets

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "dataSets", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "dataSet", namespace = DxfNamespaces.DXF_2_0 )
public Set<DataSet> getDataSets()
{
    return dataSets;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:9,代码来源:OrganisationUnit.java

示例10: getMessages

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "messages", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "message", namespace = DxfNamespaces.DXF_2_0 )
public List<Message> getMessages()
{
    return messages;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:MessageConversation.java

示例11: getOrganisationUnits

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty( value = "organisationUnits" )
@JacksonXmlElementWrapper( localName = "organisationUnits", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "organisationUnit", namespace = DxfNamespaces.DXF_2_0 )
public Map<String, FormOrganisationUnit> getOrganisationUnits()
{
    return organisationUnits;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:Forms.java

示例12: getUsers

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( useWrapping = false, namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "user", namespace = DxfNamespaces.DXF_2_0 )
public List<User> getUsers()
{
    return users;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:Users.java

示例13: getCategoryOptionCombos

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "categoryOptionCombos", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "categoryOptionCombo", namespace = DxfNamespaces.DXF_2_0 )
public Set<DataElementCategoryOptionCombo> getCategoryOptionCombos()
{
    return categoryOptionCombos;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:9,代码来源:DataElementCategoryOption.java

示例14: getFilterDimensions

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "filterDimensions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "filterDimension", namespace = DxfNamespaces.DXF_2_0 )
public List<String> getFilterDimensions()
{
    return filterDimensions;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:8,代码来源:EventReport.java

示例15: getCatDimensionConstraints

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "catDimensionConstraints", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "catDimensionConstraint", namespace = DxfNamespaces.DXF_2_0 )
public Set<DataElementCategory> getCatDimensionConstraints()
{
    return catDimensionConstraints;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:9,代码来源:UserCredentials.java


注:本文中的com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。