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


Java JsonProperty类代码示例

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


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

示例1: GenerateBatchPositionResults

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public GenerateBatchPositionResults(@JsonProperty("buildingIdentifier") Long buildingIdentifier,
                                    @JsonProperty("evaluationFile") Long evalFileIdentifier,
                                    @JsonProperty(value = "projectIdentifier", required = false) long projectIdentifier,
                                    @JsonProperty("radioMapFiles") long[] radioMapFileIdentifiers,
                                    @JsonProperty("algorithmType") String algorithmType,
                                    @JsonProperty("projectParameters") Set<SaveNewProjectParameters> projectParameters,
                                    @JsonProperty("withPixelPosition") boolean withPixelPosition) {

    this.buildingIdentifier = buildingIdentifier;
    this.evalFileIdentifier = evalFileIdentifier;
    this.projectIdentifier = projectIdentifier;
    this.radioMapFileIdentifiers = radioMapFileIdentifiers;
    this.algorithmType = algorithmType;
    this.projectParameters = projectParameters;
    this.withPixelPosition = withPixelPosition;
}
 
开发者ID:ProjectIndoor,项目名称:projectindoorweb,代码行数:18,代码来源:GenerateBatchPositionResults.java

示例2: MultipleMirrorConfig

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
MultipleMirrorConfig(
        @JsonProperty("enabled") Boolean enabled,
        @JsonProperty("defaultSchedule") String defaultSchedule,
        @JsonProperty(value = "defaultDirection", required = true) MirrorDirection defaultDirection,
        @JsonProperty("defaultLocalPath") String defaultLocalPath,
        @JsonProperty(value = "includes", required = true)
        @JsonDeserialize(contentAs = MirrorInclude.class)
        Iterable<MirrorInclude> includes,
        @JsonProperty("excludes")
        @JsonDeserialize(contentAs = Pattern.class)
        Iterable<Pattern> excludes) {

    super(firstNonNull(enabled, true));
    this.defaultSchedule = cronParser.parse(firstNonNull(defaultSchedule, DEFAULT_SCHEDULE));
    this.defaultDirection = requireNonNull(defaultDirection, "defaultDirection");
    this.defaultLocalPath = firstNonNull(defaultLocalPath, "/");
    this.includes = ImmutableList.copyOf(requireNonNullElements(includes, "includes"));
    if (excludes != null) {
        this.excludes = ImmutableList.copyOf(requireNonNullElements(excludes, "excludes"));
    } else {
        this.excludes = Collections.emptyList();
    }
}
 
开发者ID:line,项目名称:centraldogma,代码行数:25,代码来源:DefaultMetaRepository.java

示例3: ProblemResponse

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
@Builder(toBuilder = true)
public ProblemResponse(
        @JsonProperty("title") String title,
        @JsonProperty("detail") String detail,
        @JsonProperty("status") int status,
        @JsonProperty("incidentReferenceId") String incidentReferenceId,
        @JsonProperty("suggestedUserMessageInDetail") boolean suggestedUserMessageInDetail,
        @JsonProperty("type") String type,
        @Singular("context") @JsonProperty("context") Map<String, String> context)
{
    this.title = title;
    this.detail = detail;
    this.status = status;
    this.incidentReferenceId = incidentReferenceId;
    this.suggestedUserMessageInDetail = suggestedUserMessageInDetail;
    this.type = type;
    this.context = context;
}
 
开发者ID:code-obos,项目名称:servicebuilder,代码行数:20,代码来源:ProblemResponse.java

示例4: getOngoingUpdates

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 * @return the ongoingUpdates
 */
@JsonProperty("ongoingUpdates")
public BlockingQueue<Update> getOngoingUpdates() {
	this.rLock.lock();
	try {
		return this.ongoingUpdates;
	} finally {
		this.rLock.unlock();
	}
}
 
开发者ID:sgr-io,项目名称:telegram-bot-api,代码行数:13,代码来源:MemoryBasedBotSessionStore.java

示例5: getActions

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("actions")
public Link getActions() {
  return actions;
}
 
开发者ID:cliffano,项目名称:swaggy-jenkins,代码行数:9,代码来源:PipelineImpllinks.java

示例6: getAvailableSwapSpace

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("availableSwapSpace")
public Integer getAvailableSwapSpace() {
  return availableSwapSpace;
}
 
开发者ID:cliffano,项目名称:swaggy-jenkins,代码行数:9,代码来源:SwapSpaceMonitorMemoryUsage2.java

示例7: Contact

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 * @param phoneNumber
 * 						Contact's phone number
 * @param firstName
 * 						Contact's first name
 * @param lastName
 * 						Optional. Contact's last name
 * @param userID
 * 						Optional. Contact's user identifier in Telegram
 */
public Contact(
		@JsonProperty("phone_number") String phoneNumber,
		@JsonProperty("first_name") String firstName,
		@JsonProperty("last_name") String lastName,
		@JsonProperty("user_id") Long userID) {
	Preconditions.notEmptyString(phoneNumber, "Phone number should be provided.");
	this.phoneNumber = phoneNumber;
	Preconditions.notEmptyString(phoneNumber, "First name should be provided.");
	this.firstName = firstName;
	this.lastName = lastName;
	this.userID = userID;
}
 
开发者ID:sgr-io,项目名称:telegram-bot-api,代码行数:23,代码来源:Contact.java

示例8: ConfigValueInfo

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public ConfigValueInfo(
    @JsonProperty("name") String name,
    @JsonProperty("value") String value,
    @JsonProperty("recommended_values") List<String> recommendedValues,
    @JsonProperty("errors") List<String> errors,
    @JsonProperty("visible") boolean visible) {
    this.name = name;
    this.value = value;
    this.recommendedValues = recommendedValues;
    this.errors = errors;
    this.visible = visible;
}
 
开发者ID:YMCoding,项目名称:kafka-0.11.0.0-src-with-comment,代码行数:14,代码来源:ConfigValueInfo.java

示例9: getIconClassName

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("iconClassName")
public String getIconClassName() {
  return iconClassName;
}
 
开发者ID:cliffano,项目名称:swaggy-jenkins,代码行数:9,代码来源:FreeStyleProjecthealthReport.java

示例10: TiDBInfo

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public TiDBInfo(
    @JsonProperty("id") long id,
    @JsonProperty("db_name") CIStr name,
    @JsonProperty("charset") String charset,
    @JsonProperty("collate") String collate,
    @JsonProperty("-") List<TiTableInfo> tables,
    @JsonProperty("state") int schemaState) {
  this.id = id;
  this.name = name.getL();
  this.charset = charset;
  this.collate = collate;
  this.tables = tables;
  this.schemaState = SchemaState.fromValue(schemaState);
}
 
开发者ID:pingcap,项目名称:tikv-client-lib-java,代码行数:16,代码来源:TiDBInfo.java

示例11: getPropertyClass

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("_class")
public String getPropertyClass() {
  return propertyClass;
}
 
开发者ID:cliffano,项目名称:swaggy-jenkins,代码行数:9,代码来源:PipelinelatestRun.java

示例12: HBaseStoragePluginConfig

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public HBaseStoragePluginConfig(@JsonProperty("config") Map<String, String> props, @JsonProperty("size.calculator.enabled") Boolean sizeCalculatorEnabled) {
  this.config = props;
  if (config == null) {
    config = Maps.newHashMap();
  }
  logger.debug("Initializing HBase StoragePlugin configuration with zookeeper quorum '{}', port '{}'.",
      config.get(HConstants.ZOOKEEPER_QUORUM), config.get(HBASE_ZOOKEEPER_PORT));
  if (sizeCalculatorEnabled == null) {
    this.sizeCalculatorEnabled = false;
  } else {
    this.sizeCalculatorEnabled = sizeCalculatorEnabled;
  }
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:15,代码来源:HBaseStoragePluginConfig.java

示例13: S3

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public S3(
           @JsonProperty("bucket") String bucket,
           @JsonProperty("region") String region,
           @JsonProperty("accessKey") String accessKey,
           @JsonProperty("secretKey") String secretKey,
           @JsonProperty("minimumSegmentSize") int minimumSegmentSize) {
  this.bucket = bucket;
  this.region = region;
  this.accessKey = accessKey;
  this.secretKey = secretKey;
  this.minimumSegmentSize = minimumSegmentSize;
}
 
开发者ID:Patreon,项目名称:euphrates,代码行数:14,代码来源:Config.java

示例14: getLastUnstableBuild

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("lastUnstableBuild")
public String getLastUnstableBuild() {
  return lastUnstableBuild;
}
 
开发者ID:cliffano,项目名称:swaggy-jenkins,代码行数:9,代码来源:FreeStyleProject.java

示例15: getWeatherScore

import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("weatherScore")
public Integer getWeatherScore() {
  return weatherScore;
}
 
开发者ID:cliffano,项目名称:swaggy-jenkins,代码行数:9,代码来源:MultibranchPipeline.java


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