本文整理汇总了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;
}
示例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()));
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例9: propertyGetter
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@Override
public void propertyGetter(JMethod getter, String propertyName) {
getter.annotate(JsonProperty.class).param("value", propertyName);
}
示例10: propertySetter
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@Override
public void propertySetter(JMethod setter, String propertyName) {
setter.annotate(JsonProperty.class).param("value", propertyName);
}
示例11: Config
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
public Config(@JsonProperty("compatibility") String compatibilityLevel) {
this.compatibilityLevel = compatibilityLevel;
}
示例12: getCompatibilityLevel
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("compatibility")
public String getCompatibilityLevel() {
return compatibilityLevel;
}
示例13: setCompatibilityLevel
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("compatibility")
public void setCompatibilityLevel(String compatibilityLevel) {
this.compatibilityLevel = compatibilityLevel;
}
示例14: setScheduledTime
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("scheduledTime")
public void setScheduledTime(String dateTime) {
scheduledTime = dateTime;
}
示例15: getConnectionName
import org.codehaus.jackson.annotate.JsonProperty; //导入依赖的package包/类
@JsonProperty("connectionName")
public String getConnectionName() {
return connectionName;
}