类com.fasterxml.jackson.annotation.JsonProperty源码实例Demo

下面列出了怎么用com.fasterxml.jackson.annotation.JsonProperty的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: presto   文件: PlanCostEstimate.java
@JsonCreator
public PlanCostEstimate(
        @JsonProperty("cpuCost") double cpuCost,
        @JsonProperty("maxMemory") double maxMemory,
        @JsonProperty("maxMemoryWhenOutputting") double maxMemoryWhenOutputting,
        @JsonProperty("networkCost") double networkCost,
        @JsonProperty("rootNodeLocalCostEstimate") LocalCostEstimate rootNodeLocalCostEstimate)
{
    checkArgument(!(cpuCost < 0), "cpuCost cannot be negative: %s", cpuCost);
    checkArgument(!(maxMemory < 0), "maxMemory cannot be negative: %s", maxMemory);
    checkArgument(!(maxMemoryWhenOutputting < 0), "maxMemoryWhenOutputting cannot be negative: %s", maxMemoryWhenOutputting);
    checkArgument(!(maxMemoryWhenOutputting > maxMemory), "maxMemoryWhenOutputting cannot be greater than maxMemory: %s > %s", maxMemoryWhenOutputting, maxMemory);
    checkArgument(!(networkCost < 0), "networkCost cannot be negative: %s", networkCost);
    this.cpuCost = cpuCost;
    this.maxMemory = maxMemory;
    this.maxMemoryWhenOutputting = maxMemoryWhenOutputting;
    this.networkCost = networkCost;
    this.rootNodeLocalCostEstimate = requireNonNull(rootNodeLocalCostEstimate, "rootNodeLocalCostEstimate is null");
}
 
源代码2 项目: Singularity   文件: SingularityAppcImage.java
@JsonCreator
public SingularityAppcImage(
  @JsonProperty("name") String name,
  @JsonProperty("id") Optional<String> id
) {
  this.name = name;
  this.id = id;
}
 
源代码3 项目: openapi-generator   文件: User.java
/**
 * Get firstName
 * @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getFirstName() {
  return firstName;
}
 
源代码4 项目: Bats   文件: HashToMergeExchange.java
@JsonCreator
public HashToMergeExchange(@JsonProperty("child") PhysicalOperator child,
    @JsonProperty("expr") LogicalExpression expr,
    @JsonProperty("orderings") List<Ordering> orderExprs) {
  super(child);
  this.distExpr = expr;
  this.orderExprs = orderExprs;
}
 
源代码5 项目: swagger-aem   文件: SamlConfigurationProperties.java
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("useEncryption")
public SamlConfigurationPropertyItemsBoolean getUseEncryption() {
  return useEncryption;
}
 
源代码6 项目: Singularity   文件: SingularityS3SearchRequest.java
@JsonCreator
public SingularityS3SearchRequest(
  @JsonProperty("requestsAndDeploys") Map<String, List<String>> requestsAndDeploys,
  @JsonProperty("fileNamePrefixWhitelist") List<String> fileNamePrefixWhitelist,
  @JsonProperty("taskIds") List<String> taskIds,
  @JsonProperty("start") Optional<Long> start,
  @JsonProperty("end") Optional<Long> end,
  @JsonProperty("excludeMetadata") boolean excludeMetadata,
  @JsonProperty("listOnly") boolean listOnly,
  @JsonProperty("maxPerPage") Optional<Integer> maxPerPage,
  @JsonProperty("continuationTokens") Map<String, ContinuationToken> continuationTokens
) {
  this.requestsAndDeploys =
    requestsAndDeploys != null
      ? requestsAndDeploys
      : Collections.<String, List<String>>emptyMap();
  this.fileNamePrefixWhitelist =
    fileNamePrefixWhitelist != null ? fileNamePrefixWhitelist : Collections.emptyList();
  this.taskIds = taskIds != null ? taskIds : Collections.<String>emptyList();
  this.start = start;
  this.end = end;
  this.excludeMetadata = excludeMetadata;
  this.listOnly = listOnly;
  this.maxPerPage = maxPerPage;
  this.continuationTokens =
    continuationTokens != null
      ? continuationTokens
      : Collections.<String, ContinuationToken>emptyMap();
}
 
源代码7 项目: openapi-generator   文件: Category.java
/**
 * Get name
 * @return name
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)

public String getName() {
  return name;
}
 
源代码8 项目: presto   文件: LocalFileTableHandle.java
@JsonCreator
public LocalFileTableHandle(
        @JsonProperty("schemaTableName") SchemaTableName schemaTableName,
        @JsonProperty("timestampColumn") OptionalInt timestampColumn,
        @JsonProperty("serverAddressColumn") OptionalInt serverAddressColumn,
        @JsonProperty("constraint") TupleDomain<ColumnHandle> constraint)
{
    this.schemaTableName = requireNonNull(schemaTableName, "schemaTableName is null");
    this.timestampColumn = requireNonNull(timestampColumn, "timestampColumn is null");
    this.serverAddressColumn = requireNonNull(serverAddressColumn, "serverAddressColumn is null");
    this.constraint = requireNonNull(constraint, "constraint is null");
}
 
源代码9 项目: bookstore-cqrs-example   文件: OrderPlacedEvent.java
public OrderPlacedEvent(@JsonProperty("aggregateId") OrderId id,
                        @JsonProperty("version") int version,
                        @JsonProperty("timestamp") long timestamp,
                        @JsonProperty("customerInformation") CustomerInformation customerInformation,
                        @JsonProperty("orderLines") List<OrderLine> orderLines,
                        @JsonProperty("orderAmount") long orderAmount) {
  super(id, version, timestamp);
  this.customerInformation = customerInformation;
  this.orderLines = Collections.unmodifiableList(orderLines);
  this.orderAmount = orderAmount;
}
 
源代码10 项目: identity-api-server   文件: Scope.java
@ApiModelProperty(example = "[\"birthdate\",\"gender\"]", required = true, value = "")
@JsonProperty("claims")
@Valid
@NotNull(message = "Property claims cannot be null.")

public List<String> getClaims() {
    return claims;
}
 
源代码11 项目: dhis2-core   文件: InterpretationComment.java
@JsonProperty( "mentions" )
@JacksonXmlElementWrapper( localName = "mentions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "mentions", namespace = DxfNamespaces.DXF_2_0 )
public List<Mention> getMentions()
{
    return mentions;
}
 
源代码12 项目: dependency-track   文件: CloneProjectRequest.java
@JsonCreator
public CloneProjectRequest(@JsonProperty(value = "project", required = true) String project,
                           @JsonProperty(value = "version", required = true) String version,
                           @JsonProperty(value = "includeTags") boolean includeTags,
                           @JsonProperty(value = "includeProperties") boolean includeProperties,
                           @JsonProperty(value = "includeDependencies") boolean includeDependencies,
                           @JsonProperty(value = "includeAuditHistory") boolean includeAuditHistory) {
    this.project = project;
    this.version = version;
    this.includeTags = includeTags;
    this.includeProperties = includeProperties;
    this.includeDependencies = includeDependencies;
    this.includeAuditHistory = includeAuditHistory;
}
 
源代码13 项目: dhis2-core   文件: DataApprovalWorkflow.java
@JsonProperty
@JsonSerialize( using = JacksonPeriodTypeSerializer.class )
@JsonDeserialize( using = JacksonPeriodTypeDeserializer.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
@Property( PropertyType.TEXT )
public PeriodType getPeriodType()
{
    return periodType;
}
 
源代码14 项目: dremio-oss   文件: InfoSchemaGroupScan.java
@JsonCreator
public InfoSchemaGroupScan(
    @JsonProperty("props") OpProps props,
    @JsonProperty("table") InformationSchemaTable table,
    @JsonProperty("columns") List<SchemaPath> columns,
    @JsonProperty("query") SearchQuery query,
    @JsonProperty("pluginId") StoragePluginId pluginId
    ) {
  super(props);
  this.table = table;
  this.columns = columns;
  this.query = query;
  this.pluginId = pluginId;
}
 
源代码15 项目: sdk-rest   文件: Note.java
@Override
@JsonProperty("id")
public Integer getId() {
	return id;
}
 
源代码16 项目: batfish   文件: IncrementalBdpAnswerElement.java
@Override
@JsonProperty(PROP_VERSION)
public String getVersion() {
  return _version;
}
 
源代码17 项目: govpay   文件: Stazione.java
@JsonProperty("password")
public String getPassword() {
  return this.password;
}
 
源代码18 项目: nomad-java-sdk   文件: JobSummary.java
@JsonProperty("ModifyIndex")
public BigInteger getModifyIndex() {
    return modifyIndex;
}
 
源代码19 项目: govpay   文件: UnitaOperativa.java
@JsonProperty("tel")
public String getTel() {
  return this.tel;
}
 
源代码20 项目: carbon-apimgt   文件: AlertTypesListDTO.java
@ApiModelProperty(example = "3", value = "The number of alerts")
@JsonProperty("count")
public Integer getCount() {
  return count;
}
 
源代码21 项目: docker-client   文件: Container.java
@Nullable
@JsonProperty("Mounts")
public abstract ImmutableList<ContainerMount> mounts();
 
源代码22 项目: sdn-rx   文件: MovieModule.java
@JsonCreator MovieEntityMixin(@JsonProperty("title") final String title,
	@JsonProperty("description") final String description) {
}
 
@JsonProperty("result")

        public Builder withResult(com.amazon.ask.smapi.model.v1.skill.certification.CertificationResult result) {
            this.result = result;
            return this;
        }
 
源代码24 项目: heroic   文件: QueryMetrics.java
@JsonProperty("aggregation")
public abstract Optional<Aggregation> aggregation();
 
源代码25 项目: SeaCloudsPlatform   文件: DashboardConfiguration.java
@JsonProperty("planner")
public PlannerProxy getPlannerProxy() {
    return planner;
}
 
源代码26 项目: nomad-java-sdk   文件: PlanAnnotations.java
@JsonProperty("PreemptedAllocs")
public List<AllocationListStub> getPreemptedAllocs() {
    return preemptedAllocs;
}
 
源代码27 项目: swagger-aem   文件: SamlConfigurationProperties.java
@ApiModelProperty(value = "")
@JsonProperty("addGroupMemberships")
public SamlConfigurationPropertyItemsBoolean getAddGroupMemberships() {
  return addGroupMemberships;
}
 
源代码28 项目: carbon-apimgt   文件: ThrottlingPolicyDTO.java
@ApiModelProperty(example = "50", required = true, value = "Maximum number of requests which can be sent within a provided unit time ")
@JsonProperty("requestCount")
@NotNull
public Long getRequestCount() {
  return requestCount;
}
 
源代码29 项目: cubeai   文件: InputField.java
@JsonProperty("mapped_to_field")
public String getMappedToField() {
	return mappedToField;
}
 
源代码30 项目: presto   文件: ExampleColumnHandle.java
@JsonProperty
public Type getColumnType()
{
    return columnType;
}
 
 类方法
 同包方法