當前位置: 首頁>>代碼示例>>Java>>正文


Java JsonIgnore類代碼示例

本文整理匯總了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();
}
 
開發者ID:spring-cloud,項目名稱:spring-cloud-skipper,代碼行數:22,代碼來源:Status.java

示例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;
}
 
開發者ID:vangav,項目名稱:vos_instagram_bots,代碼行數:27,代碼來源:RequestLoginEmail.java

示例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;
    }
}
 
開發者ID:redlink-gmbh,項目名稱:smarti,代碼行數:17,代碼來源:ComponentConfiguration.java

示例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;
}
 
開發者ID:vangav,項目名稱:vos_instagram_bots,代碼行數:31,代碼來源:RequestUpdateFacebookInfo.java

示例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();
}
 
開發者ID:smoketurner,項目名稱:dropwizard-atomix,代碼行數:9,代碼來源:AtomixNode.java

示例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);
}
 
開發者ID:CognizantQAHub,項目名稱:Cognizant-Intelligent-Test-Scripter,代碼行數:12,代碼來源:ObjectGroup.java

示例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;
}
 
開發者ID:vangav,項目名稱:vos_instagram,代碼行數:9,代碼來源:ResponseGetPostPhotoId.java

示例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;
}
 
開發者ID:remipassmoilesel,項目名稱:simple-hostel-management,代碼行數:13,代碼來源:Reservation.java

示例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;
}
 
開發者ID:CognizantQAHub,項目名稱:Cognizant-Intelligent-Test-Scripter,代碼行數:11,代碼來源:WebORObject.java

示例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;
}
 
開發者ID:vangav,項目名稱:vos_instagram_bots,代碼行數:19,代碼來源:RequestLoginFacebook.java

示例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);
}
 
開發者ID:CognizantQAHub,項目名稱:Cognizant-Intelligent-Test-Scripter,代碼行數:13,代碼來源:WebORPage.java

示例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;
}
 
開發者ID:skhalifa,項目名稱:QDrill,代碼行數:13,代碼來源:HBaseStoragePluginConfig.java

示例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;
}
 
開發者ID:vangav,項目名稱:vos_instagram_bots,代碼行數:12,代碼來源:RequestPostPhoto.java

示例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;
}
 
開發者ID:vangav,項目名稱:vos_instagram,代碼行數:9,代碼來源:ResponseLikePost.java

示例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());
    }
}
 
開發者ID:CognizantQAHub,項目名稱:Cognizant-Intelligent-Test-Scripter,代碼行數:12,代碼來源:MobileORObject.java


注:本文中的com.fasterxml.jackson.annotation.JsonIgnore類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。