Java 类org.codehaus.jackson.annotate.JsonProperty 实例源码

项目:jwala    文件:ResourceTemplateMetaData.java   
@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;
}
项目:GitHub    文件:Jackson1Annotator.java   
@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()));
    }
}
项目:dcs-sdk-java    文件:Alert.java   
@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;
}
项目:hadoop    文件:RegistryPathStatus.java   
/**
 * 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;
}
项目:redirector    文件:MetaData.java   
/**
 * 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;
}
项目:jwala    文件:Entity.java   
@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;
}
项目:aliyun-oss-hadoop-fs    文件:RegistryPathStatus.java   
/**
 * 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;
}
项目:Mastering-Mesos    文件:TierInfo.java   
@JsonCreator
public TierInfo(
    @JsonProperty("preemptible") boolean preemptible,
    @JsonProperty("revocable") boolean revocable) {

  this.preemptible = preemptible;
  this.revocable = revocable;
}
项目:Availability-Monitor-for-Kafka    文件:MetaData.java   
/**
 * 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;
}
项目:GitHub    文件:Jackson1Annotator.java   
@Override
public void propertyGetter(JMethod getter, String propertyName) {
    getter.annotate(JsonProperty.class).param("value", propertyName);
}
项目:GitHub    文件:Jackson1Annotator.java   
@Override
public void propertySetter(JMethod setter, String propertyName) {
    setter.annotate(JsonProperty.class).param("value", propertyName);
}
项目:wherehowsX    文件:Config.java   
public Config(@JsonProperty("compatibility") String compatibilityLevel) {
  this.compatibilityLevel = compatibilityLevel;
}
项目:wherehowsX    文件:Config.java   
@JsonProperty("compatibility")
public String getCompatibilityLevel() {
  return compatibilityLevel;
}
项目:wherehowsX    文件:Config.java   
@JsonProperty("compatibility")
public void setCompatibilityLevel(String compatibilityLevel) {
  this.compatibilityLevel = compatibilityLevel;
}
项目:dcs-sdk-java    文件:SetAlertPayload.java   
@JsonProperty("scheduledTime")
public void setScheduledTime(String dateTime) {
    scheduledTime = dateTime;
}
项目:beaker-notebook-archive    文件:ConnectionStringBean.java   
@JsonProperty("connectionName")
public String getConnectionName() {
  return connectionName;
}
项目:beaker-notebook-archive    文件:ConnectionStringBean.java   
@JsonProperty("connectionString")
public String getConnectionString() {
  return connectionString;
}
项目:beaker-notebook-archive    文件:ConnectionStringBean.java   
@JsonProperty("user")
public String getUser() {
  return user;
}
项目:hadoop    文件:ApiKeyAuthenticationRequest.java   
/**
 * @return credentials for login into Keystone
 */
@JsonProperty("RAX-KSKEY:apiKeyCredentials")
public ApiKeyCredentials getApiKeyCredentials() {
  return apiKeyCredentials;
}
项目:pokeraidbot    文件:JsonPokemons.java   
@JsonProperty
public Set<JsonPokemon> getPokemons() {
    return pokemons;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("blockNumber")
public String getBlockNumber() {
    return blockNumber;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("blockNumber")
public void setBlockNumber(String blockNumber) {
    this.blockNumber = blockNumber;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("timeStamp")
public String getTimeStamp() {
    return timeStamp;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("timeStamp")
public void setTimeStamp(String timeStamp) {
    this.timeStamp = timeStamp;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("hash")
public String getHash() {
    return hash;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("hash")
public void setHash(String hash) {
    this.hash = hash;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("nonce")
public String getNonce() {
    return nonce;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("nonce")
public void setNonce(String nonce) {
    this.nonce = nonce;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("blockHash")
public String getBlockHash() {
    return blockHash;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("blockHash")
public void setBlockHash(String blockHash) {
    this.blockHash = blockHash;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("transactionIndex")
public String getTransactionIndex() {
    return transactionIndex;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("transactionIndex")
public void setTransactionIndex(String transactionIndex) {
    this.transactionIndex = transactionIndex;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("from")
public String getFrom() {
    return from;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("from")
public void setFrom(String from) {
    this.from = from;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("to")
public String getTo() {
    return to;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("to")
public void setTo(String to) {
    this.to = to;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("value")
public String getValue() {
    return value;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("value")
public void setValue(String value) {
    this.value = value;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("gas")
public String getGas() {
    return gas;
}
项目:ethereum-java-wallet    文件:Result.java   
@JsonProperty("gas")
public void setGas(String gas) {
    this.gas = gas;
}