当前位置: 首页>>代码示例>>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;未经允许,请勿转载。