當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。