本文整理汇总了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;
}
示例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;
}
示例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());
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}