本文整理汇总了Java中com.fasterxml.jackson.annotation.JsonIgnore类的典型用法代码示例。如果您正苦于以下问题:Java JsonIgnore类的具体用法?Java JsonIgnore怎么用?Java JsonIgnore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonIgnore类属于com.fasterxml.jackson.annotation包,在下文中一共展示了JsonIgnore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPlatformStatusPrettyPrint
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public String getPlatformStatusPrettyPrint() {
List<AppStatus> appStatusList = getAppStatusList();
StringBuffer statusMsg = new StringBuffer();
for (AppStatus appStatus : appStatusList) {
statusMsg.append("[" + appStatus.getDeploymentId() + "]");
if (appStatus.getInstances().isEmpty()) {
statusMsg.append(", State = [" + appStatus.getState() + "]");
}
else {
statusMsg.append(", State = [");
for (AppInstanceStatus appInstanceStatus : appStatus.getInstances().values()) {
statusMsg.append(appInstanceStatus.getId() + "=" + appInstanceStatus.getState() + "\n");
}
statusMsg.setLength(statusMsg.length() - 1);
statusMsg.append("]\n");
}
}
return statusMsg.toString();
}
示例2: RequestLoginEmail
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
/**
* Constructor - RequestLoginEmail
* this is the constructor for all request's params (mandatory and optional)
* @param devicetoken
* @param email
* @param password
* @param requesttrackingid
* @return new RequestLoginEmail Object
* @throws Exception
*/
@JsonIgnore
public RequestLoginEmail (
String devicetoken,
String email,
String password,
String requesttrackingid) throws Exception {
this.device_token =
devicetoken;
this.email =
email;
this.password =
password;
this.request_tracking_id =
requesttrackingid;
}
示例3: getConfiguration
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public final float getConfiguration(String key, float defaultValue) {
Object value = configuration.get(key);
if (value instanceof Float) {
return ((Number) value).floatValue();
} else if (value instanceof String || value instanceof Number) {
try {
//this will also convert things like 4.0 to 4 but fail for 4.1
return new BigDecimal(value.toString()).floatValue();
} catch (NumberFormatException e) {
return defaultValue;
}
} else {
return defaultValue;
}
}
示例4: RequestUpdateFacebookInfo
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
/**
* Constructor - RequestUpdateFacebookInfo
* this is the constructor for all request's params (mandatory and optional)
* @param devicetoken
* @param userid
* @param accesstoken
* @param fbaccesstoken
* @param requesttrackingid
* @return new RequestUpdateFacebookInfo Object
* @throws Exception
*/
@JsonIgnore
public RequestUpdateFacebookInfo (
String devicetoken,
String userid,
String accesstoken,
String fbaccesstoken,
String requesttrackingid) throws Exception {
this.device_token =
devicetoken;
this.user_id =
userid;
this.access_token =
accesstoken;
this.fb_access_token =
fbaccesstoken;
this.request_tracking_id =
requesttrackingid;
}
示例5: toNode
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public Node toNode() {
return Node.builder(id)
.withEndpoint(
Endpoint.from(endpoint.getHost(), endpoint.getPort()))
.withType(Type.valueOf(type.toUpperCase(Locale.ENGLISH)))
.build();
}
示例6: addObject
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public T addObject() {
String oName = "Object";
int i = 0;
String objectName;
do {
objectName = oName + i++;
} while (getObjectByName(objectName) != null);
return addObject(objectName);
}
示例7: set
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public void set (
String request_tracking_id,
String photo_id) {
this.request_tracking_id = request_tracking_id;
this.photo_id = photo_id;
}
示例8: computeStandardTotalPrice
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public void computeStandardTotalPrice() {
DateTime dtBegin = new DateTime(begin);
DateTime dtEnd = new DateTime(end);
DateTime dayBegin = new DateTime(dtBegin.getYear(), dtBegin.getMonthOfYear(), dtBegin.getDayOfMonth(), 0, 0, 0);
DateTime dayEnd = new DateTime(dtEnd.getYear(), dtEnd.getMonthOfYear(), dtEnd.getDayOfMonth(), 0, 0, 0);
Duration duration = new Duration(dayBegin, dayEnd);
double price = getAccommodation().getPricePerDay() * duration.getStandardDays();
totalPrice = Math.round(price * 100) / 100;
}
示例9: getValueAt
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
@Override
public Object getValueAt(int row, int column) {
if (column == 0) {
return attributes.get(row).getName();
} else if (column == 1) {
return attributes.get(row).getValue();
}
return null;
}
示例10: RequestLoginFacebook
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
/**
* Constructor - RequestLoginFacebook
* this is the constructor for mandatory request's params only
* @param devicetoken
* @param fbaccesstoken
* @return new RequestLoginFacebook Object
* @throws Exception
*/
@JsonIgnore
public RequestLoginFacebook (
String devicetoken,
String fbaccesstoken) throws Exception {
this.device_token =
devicetoken;
this.fb_access_token =
fbaccesstoken;
}
示例11: addObjectGroup
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
@Override
public ObjectGroup<WebORObject> addObjectGroup() {
String oName = "WObjectGroup";
int i = 0;
String objectName;
do {
objectName = oName + i++;
} while (getObjectGroupByName(objectName) != null);
return addObjectGroup(objectName);
}
示例12: getHBaseConf
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public Configuration getHBaseConf() {
if (hbaseConf == null) {
hbaseConf = HBaseConfiguration.create();
if (config != null) {
for (Map.Entry<String, String> entry : config.entrySet()) {
hbaseConf.set(entry.getKey(), entry.getValue());
}
}
}
return hbaseConf;
}
示例13: setLongitude
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
/**
* setLongitude
* @param longitude
* @throws Exception
*/
@JsonIgnore
public void setLongitude (
double longitude) throws Exception {
this.longitude = longitude;
}
示例14: set
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
public void set (
String request_tracking_id,
long like_time) {
this.request_tracking_id = request_tracking_id;
this.like_time = like_time;
}
示例15: removeFromParent
import com.fasterxml.jackson.annotation.JsonIgnore; //导入依赖的package包/类
@JsonIgnore
@Override
public void removeFromParent() {
changeSave();
if (group.getObjects().size() == 1) {
group.removeFromParent();
} else {
group.getObjects().remove(this);
FileUtils.deleteFile(getRepLocation());
}
}