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


Java JsonProperty类代码示例

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


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

示例1: ResourceTemplateMetaData

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonCreator
public ResourceTemplateMetaData(@JsonProperty("templateName") final String templateName,
                                @JsonProperty("contentType") final MediaType contentType,
                                @JsonProperty("deployFileName") final String deployFileName,
                                @JsonProperty("deployPath") final String deployPath,
                                @JsonProperty("entity") final Entity entity,
                                @JsonProperty("unpack") final Boolean unpack,
                                @JsonProperty("overwrite") Boolean overwrite,
                                @JsonProperty("hotDeploy") Boolean hotDeploy) {
    this.templateName = templateName;
    this.contentType = contentType;
    this.deployFileName = deployFileName;
    this.deployPath = deployPath;
    this.entity = entity;
    this.unpack = unpack == null ? false : unpack;
    this.overwrite = overwrite == null ? true : overwrite;
    this.hotDeploy = hotDeploy == null ? false : hotDeploy;
}
 
开发者ID:cerner,项目名称:jwala,代码行数:19,代码来源:ResourceTemplateMetaData.java

示例2: propertyField

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@Override
public void propertyField(JFieldVar field, JDefinedClass clazz, String propertyName, JsonNode propertyNode) {
    field.annotate(JsonProperty.class).param("value", propertyName);
    if (field.type().erasure().equals(field.type().owner().ref(Set.class))) {
        field.annotate(JsonDeserialize.class).param("as", LinkedHashSet.class);
    }

    if (propertyNode.has("javaJsonView")) {
        field.annotate(JsonView.class).param(
                "value", field.type().owner().ref(propertyNode.get("javaJsonView").asText()));
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:13,代码来源:Jackson1Annotator.java

示例3: Alert

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonCreator
public Alert(@JsonProperty("token") String token, @JsonProperty("type") SetAlertPayload.AlertType type,
             @JsonProperty("scheduledTime") String scheduledTime) {
    this.token = token;
    this.type = type;
    this.scheduledTime = scheduledTime;
}
 
开发者ID:dueros,项目名称:dcs-sdk-java,代码行数:8,代码来源:Alert.java

示例4: RegistryPathStatus

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
/**
 * Construct an instance
 * @param path full path
 * @param time time
 * @param size entry size
 * @param children number of children
 */
public RegistryPathStatus(
    @JsonProperty("path") String path,
    @JsonProperty("time") long time,
    @JsonProperty("size") long size,
    @JsonProperty("children") int children) {
  this.path = path;
  this.time = time;
  this.size = size;
  this.children = children;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:18,代码来源:RegistryPathStatus.java

示例5: MetaData

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
/**
 * Instantiates a new worker metadata.
 *
 * @param  workerId       the worker id
 * @param  listenAddress  the listen address
 * @param  listenPort     the listen port
 * @param  serviceName    the service name
 */
public MetaData(@JsonProperty
                UUID workerId, @JsonProperty
                String listenAddress, @JsonProperty
                int listenPort, @JsonProperty
                String serviceName) {
    this.workerId = workerId;
    this.listenAddress = listenAddress;
    this.listenPort = listenPort;
    this.serviceName = serviceName;
}
 
开发者ID:Comcast,项目名称:redirector,代码行数:19,代码来源:MetaData.java

示例6: Entity

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonCreator
public Entity(@JsonProperty("type") final String type,
              @JsonProperty("group") final String group,
              @JsonProperty("target") final String target,
              @JsonProperty("parentName") final String parentName,
              @JsonProperty("deployToJvms") final Boolean deployToJvms) {
    this.type = type;
    this.group = group;
    this.target = target;
    this.parentName = parentName;
    this.deployToJvms = deployToJvms == null ? true : deployToJvms;
}
 
开发者ID:cerner,项目名称:jwala,代码行数:13,代码来源:Entity.java

示例7: TierInfo

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonCreator
public TierInfo(
    @JsonProperty("preemptible") boolean preemptible,
    @JsonProperty("revocable") boolean revocable) {

  this.preemptible = preemptible;
  this.revocable = revocable;
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Mesos,代码行数:9,代码来源:TierInfo.java

示例8: MetaData

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
/**
 * Instantiates a new worker metadata.
 *
 * @param workerId      the worker id
 * @param listenAddress the listen address
 * @param listenPort    the listen port
 * @param serviceName   the service name
 */
public MetaData(@JsonProperty
                UUID workerId, @JsonProperty
                String listenAddress, @JsonProperty
                int listenPort, @JsonProperty
                String serviceName) {
    this.workerId = workerId;
    this.listenAddress = listenAddress;
    this.listenPort = listenPort;
    this.serviceName = serviceName;
}
 
开发者ID:Microsoft,项目名称:Availability-Monitor-for-Kafka,代码行数:19,代码来源:MetaData.java

示例9: propertyGetter

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@Override
public void propertyGetter(JMethod getter, String propertyName) {
    getter.annotate(JsonProperty.class).param("value", propertyName);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:Jackson1Annotator.java

示例10: propertySetter

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@Override
public void propertySetter(JMethod setter, String propertyName) {
    setter.annotate(JsonProperty.class).param("value", propertyName);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:Jackson1Annotator.java

示例11: Config

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
public Config(@JsonProperty("compatibility") String compatibilityLevel) {
  this.compatibilityLevel = compatibilityLevel;
}
 
开发者ID:thomas-young-2013,项目名称:wherehowsX,代码行数:4,代码来源:Config.java

示例12: getCompatibilityLevel

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("compatibility")
public String getCompatibilityLevel() {
  return compatibilityLevel;
}
 
开发者ID:thomas-young-2013,项目名称:wherehowsX,代码行数:5,代码来源:Config.java

示例13: setCompatibilityLevel

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("compatibility")
public void setCompatibilityLevel(String compatibilityLevel) {
  this.compatibilityLevel = compatibilityLevel;
}
 
开发者ID:thomas-young-2013,项目名称:wherehowsX,代码行数:5,代码来源:Config.java

示例14: setScheduledTime

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("scheduledTime")
public void setScheduledTime(String dateTime) {
    scheduledTime = dateTime;
}
 
开发者ID:dueros,项目名称:dcs-sdk-java,代码行数:5,代码来源:SetAlertPayload.java

示例15: getConnectionName

import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("connectionName")
public String getConnectionName() {
  return connectionName;
}
 
开发者ID:twosigma,项目名称:beaker-notebook-archive,代码行数:5,代码来源:ConnectionStringBean.java


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