@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;
}
java类org.codehaus.jackson.annotate.JsonProperty的实例源码
ResourceTemplateMetaData.java 文件源码
项目:jwala
阅读 18
收藏 0
点赞 0
评论 0
Jackson1Annotator.java 文件源码
项目:GitHub
阅读 23
收藏 0
点赞 0
评论 0
@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()));
}
}
Alert.java 文件源码
项目:dcs-sdk-java
阅读 33
收藏 0
点赞 0
评论 0
@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;
}
RegistryPathStatus.java 文件源码
项目:hadoop
阅读 22
收藏 0
点赞 0
评论 0
/**
* 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;
}
MetaData.java 文件源码
项目:redirector
阅读 19
收藏 0
点赞 0
评论 0
/**
* 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;
}
Entity.java 文件源码
项目:jwala
阅读 19
收藏 0
点赞 0
评论 0
@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;
}
RegistryPathStatus.java 文件源码
项目:aliyun-oss-hadoop-fs
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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;
}
TierInfo.java 文件源码
项目:Mastering-Mesos
阅读 24
收藏 0
点赞 0
评论 0
@JsonCreator
public TierInfo(
@JsonProperty("preemptible") boolean preemptible,
@JsonProperty("revocable") boolean revocable) {
this.preemptible = preemptible;
this.revocable = revocable;
}
MetaData.java 文件源码
项目:Availability-Monitor-for-Kafka
阅读 19
收藏 0
点赞 0
评论 0
/**
* 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;
}
Jackson1Annotator.java 文件源码
项目:GitHub
阅读 19
收藏 0
点赞 0
评论 0
@Override
public void propertyGetter(JMethod getter, String propertyName) {
getter.annotate(JsonProperty.class).param("value", propertyName);
}
Jackson1Annotator.java 文件源码
项目:GitHub
阅读 29
收藏 0
点赞 0
评论 0
@Override
public void propertySetter(JMethod setter, String propertyName) {
setter.annotate(JsonProperty.class).param("value", propertyName);
}
Config.java 文件源码
项目:wherehowsX
阅读 21
收藏 0
点赞 0
评论 0
public Config(@JsonProperty("compatibility") String compatibilityLevel) {
this.compatibilityLevel = compatibilityLevel;
}
Config.java 文件源码
项目:wherehowsX
阅读 22
收藏 0
点赞 0
评论 0
@JsonProperty("compatibility")
public String getCompatibilityLevel() {
return compatibilityLevel;
}
Config.java 文件源码
项目:wherehowsX
阅读 21
收藏 0
点赞 0
评论 0
@JsonProperty("compatibility")
public void setCompatibilityLevel(String compatibilityLevel) {
this.compatibilityLevel = compatibilityLevel;
}
SetAlertPayload.java 文件源码
项目:dcs-sdk-java
阅读 20
收藏 0
点赞 0
评论 0
@JsonProperty("scheduledTime")
public void setScheduledTime(String dateTime) {
scheduledTime = dateTime;
}
ConnectionStringBean.java 文件源码
项目:beaker-notebook-archive
阅读 33
收藏 0
点赞 0
评论 0
@JsonProperty("connectionName")
public String getConnectionName() {
return connectionName;
}
ConnectionStringBean.java 文件源码
项目:beaker-notebook-archive
阅读 27
收藏 0
点赞 0
评论 0
@JsonProperty("connectionString")
public String getConnectionString() {
return connectionString;
}
ConnectionStringBean.java 文件源码
项目:beaker-notebook-archive
阅读 19
收藏 0
点赞 0
评论 0
@JsonProperty("user")
public String getUser() {
return user;
}
ApiKeyAuthenticationRequest.java 文件源码
项目:hadoop
阅读 23
收藏 0
点赞 0
评论 0
/**
* @return credentials for login into Keystone
*/
@JsonProperty("RAX-KSKEY:apiKeyCredentials")
public ApiKeyCredentials getApiKeyCredentials() {
return apiKeyCredentials;
}
JsonPokemons.java 文件源码
项目:pokeraidbot
阅读 21
收藏 0
点赞 0
评论 0
@JsonProperty
public Set<JsonPokemon> getPokemons() {
return pokemons;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 23
收藏 0
点赞 0
评论 0
@JsonProperty("blockNumber")
public String getBlockNumber() {
return blockNumber;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 24
收藏 0
点赞 0
评论 0
@JsonProperty("blockNumber")
public void setBlockNumber(String blockNumber) {
this.blockNumber = blockNumber;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 23
收藏 0
点赞 0
评论 0
@JsonProperty("timeStamp")
public String getTimeStamp() {
return timeStamp;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 26
收藏 0
点赞 0
评论 0
@JsonProperty("timeStamp")
public void setTimeStamp(String timeStamp) {
this.timeStamp = timeStamp;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 17
收藏 0
点赞 0
评论 0
@JsonProperty("hash")
public String getHash() {
return hash;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 24
收藏 0
点赞 0
评论 0
@JsonProperty("hash")
public void setHash(String hash) {
this.hash = hash;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 25
收藏 0
点赞 0
评论 0
@JsonProperty("nonce")
public String getNonce() {
return nonce;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 28
收藏 0
点赞 0
评论 0
@JsonProperty("nonce")
public void setNonce(String nonce) {
this.nonce = nonce;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 27
收藏 0
点赞 0
评论 0
@JsonProperty("blockHash")
public String getBlockHash() {
return blockHash;
}
Result.java 文件源码
项目:ethereum-java-wallet
阅读 23
收藏 0
点赞 0
评论 0
@JsonProperty("blockHash")
public void setBlockHash(String blockHash) {
this.blockHash = blockHash;
}