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


Java JsonIgnore類代碼示例

本文整理匯總了Java中org.codehaus.jackson.annotate.JsonIgnore的典型用法代碼示例。如果您正苦於以下問題:Java JsonIgnore類的具體用法?Java JsonIgnore怎麽用?Java JsonIgnore使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


JsonIgnore類屬於org.codehaus.jackson.annotate包,在下文中一共展示了JsonIgnore類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getFont

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public Font getFont(){
	if(this.font==null){
		int fontStyle=Font.PLAIN;
		if((bold!=null && bold) && (italic!=null && italic)){
			fontStyle=Font.BOLD|Font.ITALIC;				
		}else if(bold!=null && bold){
			fontStyle=Font.BOLD;							
		}else if(italic!=null && italic){
			fontStyle=Font.ITALIC;							
		}
		double size=fontSize * 1.1;
		BigDecimal bigData=Utils.toBigDecimal(size);
		int s=bigData.setScale(0, BigDecimal.ROUND_HALF_UP).intValue();
		this.font=new Font(fontFamily,fontStyle,s);
	}
	return this.font;
}
 
開發者ID:youseries,項目名稱:ureport,代碼行數:19,代碼來源:CellStyle.java

示例2: getExtractionFunction

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
/**
 * Build an extraction function model object.
 *
 * @return  Take the internal namespaces and construct a model object for the extraction functions.
 */
@JsonIgnore
@Override
public Optional<ExtractionFunction> getExtractionFunction() {

    List<ExtractionFunction> extractionFunctions = getNamespaces().stream()
            .map(
                    namespace -> new LookupExtractionFunction(
                            new NamespaceLookup(namespace),
                            false,
                            "Unknown " + namespace,
                            false,
                            true
                    )
            ).collect(Collectors.toList());

    return Optional.ofNullable(
            extractionFunctions.size() > 1 ?
                    new CascadeExtractionFunction(extractionFunctions) :
                    extractionFunctions.size() == 1 ? extractionFunctions.get(0) : null
    );
}
 
開發者ID:yahoo,項目名稱:fili,代碼行數:27,代碼來源:LookupDimension.java

示例3: getExtractionFunction

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
/**
 * Build an extraction function model object.
 *
 * @return  Take the internal namespaces and construct a model object for the extraction functions.
 */
@Override
@JsonIgnore
public Optional<ExtractionFunction> getExtractionFunction() {

    List<ExtractionFunction> extractionFunctions = getLookups().stream()
            .map(
                    lookup -> new RegisteredLookupExtractionFunction(
                            lookup,
                            false,
                            "Unknown " + lookup,
                            false,
                            true
                    )
            ).collect(Collectors.toList());

    return Optional.ofNullable(
            extractionFunctions.size() > 1 ?
                    new CascadeExtractionFunction(extractionFunctions) :
                    extractionFunctions.size() == 1 ? extractionFunctions.get(0) : null
    );
}
 
開發者ID:yahoo,項目名稱:fili,代碼行數:27,代碼來源:RegisteredLookupDimension.java

示例4: getBaseURL

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public String getBaseURL() {
  StringBuilder builder = new StringBuilder(protocol.toString());
  builder.append("://");
  builder.append(address);
  builder.append(":");
  builder.append(port);
  return builder.toString();
}
 
開發者ID:edgexfoundry,項目名稱:core-domain,代碼行數:10,代碼來源:Addressable.java

示例5: getURL

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
/**
 * @deprecated removed if not used and if it is used, make sure it returns the right information
 */
@JsonIgnore
@Deprecated
public String getURL() {
  StringBuilder builder = new StringBuilder(getBaseURL());
  if (publisher == null && topic != null) {
    builder.append(topic);
    builder.append("/");
  }
  builder.append(path);
  return builder.toString();
}
 
開發者ID:edgexfoundry,項目名稱:core-domain,代碼行數:15,代碼來源:Addressable.java

示例6: isUpdated

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public boolean isUpdated() {
  if (!isUpdated) {
    for (StatePair statePair : pool.values()) {
      // if one of the states have changed, then the pool is dirty
      if (statePair.getState().isUpdated()) {
        isUpdated = true;
        return true;
      }
    }
  }
  return isUpdated;
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:14,代碼來源:StatePool.java

示例7: getBranches

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
@Override
public List<String> getBranches() {
    if (this.getPush() == null || this.getPush().getChanges() == null) {
        return new ArrayList<>();
    }
    return this.getPush().getChanges()
            .stream()
            .filter(bitbucketPushChange -> bitbucketPushChange != null && bitbucketPushChange.getNew() != null)
            .map(bitbucketPushChange -> bitbucketPushChange.getNew().getName())
            .collect(Collectors.toList());
}
 
開發者ID:Eernie,項目名稱:bitbucket-webhooks-plugin,代碼行數:13,代碼來源:BitbucketPushEvent.java

示例8: getJSONData

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JSONField(serialize = false)
@JsonIgnore
public JSONObject getJSONData() {
    if (data == null) {
        return null;
    }
    return JSON.parseObject(data.toString());
}
 
開發者ID:menyouping,項目名稱:jw,代碼行數:9,代碼來源:ActionResult.java

示例9: getValue

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JSONField(serialize = false)
@JsonIgnore
@SuppressWarnings("unchecked")
public <T> T getValue(String key) {
    if (data instanceof String) {
        return JsonUtils.get(JSON.parseObject((String) data), key);
    }
    if (data instanceof JSONObject) {
        return JsonUtils.get((JSONObject) (data), key);
    }
    if (data instanceof Map) {
        return JsonUtils.get(new JSONObject((Map<String, Object>) data), key);
    }
    return null;
}
 
開發者ID:menyouping,項目名稱:jw,代碼行數:16,代碼來源:ActionResult.java

示例10: getSeedUrlsCount

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public int getSeedUrlsCount() {
  if (CollectionUtils.isEmpty(seedUrls)) {
    return 0;
  }
  return seedUrls.size();
}
 
開發者ID:jorcox,項目名稱:GeoCrawler,代碼行數:8,代碼來源:SeedList.java

示例11: isExpired

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
/**
 * Returns whether the data within this UserData object is expired, and
 * thus must not be used, according to the timestamp returned by
 * getExpires().
 *
 * @return
 *     true if the data within this UserData object is expired and must not
 *     be used, false otherwise.
 */
@JsonIgnore
public boolean isExpired() {

    // Do not bother comparing if this UserData object does not expire
    Long expirationTimestamp = getExpires();
    if (expirationTimestamp == null)
        return false;

    // Otherwise, compare expiration timestamp against system time
    return System.currentTimeMillis() > expirationTimestamp;

}
 
開發者ID:glyptodon,項目名稱:guacamole-auth-json,代碼行數:22,代碼來源:UserData.java

示例12: getSortableMonth

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public String getSortableMonth() {
	if (deadline == null) {
		logger.error("Deadline is NULL for the document: " + this);
		return "";
	}
	return deadline.getYear() + "/" +  deadline.getMonthValue();
}
 
開發者ID:denis-rodionov,項目名稱:cityoffice,代碼行數:9,代碼來源:Document.java

示例13: getPrimaryKey

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@Override
@JsonIgnore
public PrimaryKey getPrimaryKey() {
    Map<Schema.Field, Object> values = new HashMap<>();
    values.put(new Schema.Field(SchemaFieldInfo.ID, Schema.Type.LONG), id);
    return new PrimaryKey(values);
}
 
開發者ID:hortonworks,項目名稱:registry,代碼行數:8,代碼來源:SchemaBranchStorable.java

示例14: getLanguageByLid

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public String getLanguageByLid() {
	if (languages != null) {
		for (Iterator<Language> it = languages.iterator(); it.hasNext();) {
			Language lang = it.next();
			if (lang.getLid() == lid) {
				return lang.getLanguage();
			}
		}
	}
	return "C";
}
 
開發者ID:dovier,項目名稱:coj-web,代碼行數:13,代碼來源:SubmissionJudge.java

示例15: getLanguageIdByKey

import org.codehaus.jackson.annotate.JsonIgnore; //導入依賴的package包/類
@JsonIgnore
public void getLanguageIdByKey() {
	if (languages != null) {
		for (Iterator<Language> it = languages.iterator(); it.hasNext();) {
			Language lang = it.next();
			if (lang.getKey().equals(key)) {
				lid = lang.getLid();
				return;
			}
		}
		lid = 1;
	}
}
 
開發者ID:dovier,項目名稱:coj-web,代碼行數:14,代碼來源:SubmissionJudge.java


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