本文整理汇总了Java中com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty类的典型用法代码示例。如果您正苦于以下问题:Java JacksonXmlProperty类的具体用法?Java JacksonXmlProperty怎么用?Java JacksonXmlProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JacksonXmlProperty类属于com.fasterxml.jackson.dataformat.xml.annotation包,在下文中一共展示了JacksonXmlProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTable
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JacksonXmlProperty(isAttribute = true, localName = "table")
public String getTable() {
if (_table == null) {
return _name;
}
return _table;
}
示例2: getOrganisationUnits
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的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;
}
示例3: setHandlerConfigList
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JacksonXmlProperty(localName = "handler")
@JacksonXmlElementWrapper(useWrapping = false)
public void setHandlerConfigList(List<HandlerConfig> handlerConfigList) {
for (HandlerConfig handlerConfig : handlerConfigList) {
handlerClassMap.put(handlerConfig.getHandlerId(), handlerConfig.getClazz());
}
}
示例4: getHumanName
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JacksonXmlProperty(isAttribute = true, localName = "human-name")
public String getHumanName() {
if (_humanName == null) {
return _name;
}
return _humanName;
}
示例5: hasDynamicUpdate
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JacksonXmlProperty(
isAttribute = true, localName = "dynamic-update-enabled"
)
public Boolean hasDynamicUpdate() {
if (_dynamicUpdateEnabled == null) {
return hasMvccEnabled();
}
return _dynamicUpdateEnabled;
}
示例6: hasJsonSerialization
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JacksonXmlProperty(isAttribute = true, localName = "json-enabled")
public boolean hasJsonSerialization() {
if (_jsonEnabled == null) {
return _remoteService;
}
return _jsonEnabled;
}
示例7: Error
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonCreator
public Error(
@JsonProperty("code") @JacksonXmlProperty(localName = "code") String code,
@JsonProperty("description") @JacksonXmlProperty(localName = "description") String description
) {
this.code = code;
this.description = isNotBlank(description) ? description : DESCRIPTION_NOT_AVAILABLE;
}
示例8: Errors
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonCreator
public Errors(
@JsonProperty("id") @JacksonXmlProperty(localName = "id") String id,
@JsonProperty("errors") @JacksonXmlProperty(localName = "Jackson bug workaround") List<Error> errors
) {
hasText(id, "Empty errors ID");
this.id = id;
this.errors = errors == null ? new ErrorsLoggingList() : new ErrorsLoggingList(errors);
}
示例9: getCharts
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "charts", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "chart", namespace = DxfNamespaces.DXF_2_0 )
public List<Chart> getCharts()
{
return charts;
}
示例10: getUsers
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonProperty( "users" )
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "users", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "user", namespace = DxfNamespaces.DXF_2_0 )
public List<User> getUsers()
{
return users;
}
示例11: getCode
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@Override
@JsonProperty
@JacksonXmlProperty( isAttribute = true )
@Description( "The unique code for this Object." )
@Property( PropertyType.IDENTIFIER )
public String getCode()
{
return code;
}
示例12: getCategoryCombo
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( as = BaseIdentifiableObject.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public DataElementCategoryCombo getCategoryCombo()
{
return categoryCombo;
}
示例13: getPeriodType
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( using = JacksonPeriodTypeSerializer.class )
@JsonDeserialize( using = JacksonPeriodTypeDeserializer.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
@Property( PropertyType.TEXT )
public PeriodType getPeriodType()
{
return periodType;
}
示例14: getPrograms
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonProperty
@JacksonXmlElementWrapper( localName = "programs", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "program", namespace = DxfNamespaces.DXF_2_0 )
public List<Program> getPrograms()
{
return programs;
}
示例15: getGroupSets
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; //导入依赖的package包/类
@JsonProperty
@JsonSerialize( contentAs = BaseIdentifiableObject.class )
@JacksonXmlElementWrapper( localName = "groupSets", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "groupSet", namespace = DxfNamespaces.DXF_2_0 )
public Set<DataElementGroupSet> getGroupSets()
{
return groupSets;
}