java类org.codehaus.jackson.annotate.JsonIgnore的实例源码

CellStyle.java 文件源码 项目:ureport 阅读 28 收藏 0 点赞 0 评论 0
@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;
}
LookupDimension.java 文件源码 项目:fili 阅读 17 收藏 0 点赞 0 评论 0
/**
 * 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
    );
}
RegisteredLookupDimension.java 文件源码 项目:fili 阅读 20 收藏 0 点赞 0 评论 0
/**
 * 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
    );
}
Addressable.java 文件源码 项目:core-domain 阅读 21 收藏 0 点赞 0 评论 0
@JsonIgnore
public String getBaseURL() {
  StringBuilder builder = new StringBuilder(protocol.toString());
  builder.append("://");
  builder.append(address);
  builder.append(":");
  builder.append(port);
  return builder.toString();
}
Addressable.java 文件源码 项目:core-domain 阅读 18 收藏 0 点赞 0 评论 0
/**
 * @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();
}
StatePool.java 文件源码 项目:hadoop 阅读 16 收藏 0 点赞 0 评论 0
@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;
}
BitbucketPushEvent.java 文件源码 项目:bitbucket-webhooks-plugin 阅读 20 收藏 0 点赞 0 评论 0
@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());
}
StatePool.java 文件源码 项目:aliyun-oss-hadoop-fs 阅读 22 收藏 0 点赞 0 评论 0
@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;
}
ActionResult.java 文件源码 项目:jw 阅读 19 收藏 0 点赞 0 评论 0
@JSONField(serialize = false)
@JsonIgnore
public JSONObject getJSONData() {
    if (data == null) {
        return null;
    }
    return JSON.parseObject(data.toString());
}
ActionResult.java 文件源码 项目:jw 阅读 19 收藏 0 点赞 0 评论 0
@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;
}
SeedList.java 文件源码 项目:GeoCrawler 阅读 16 收藏 0 点赞 0 评论 0
@JsonIgnore
public int getSeedUrlsCount() {
  if (CollectionUtils.isEmpty(seedUrls)) {
    return 0;
  }
  return seedUrls.size();
}
UserData.java 文件源码 项目:guacamole-auth-json 阅读 22 收藏 0 点赞 0 评论 0
/**
 * 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;

}
Document.java 文件源码 项目:cityoffice 阅读 22 收藏 0 点赞 0 评论 0
@JsonIgnore
public String getSortableMonth() {
    if (deadline == null) {
        logger.error("Deadline is NULL for the document: " + this);
        return "";
    }
    return deadline.getYear() + "/" +  deadline.getMonthValue();
}
StatePool.java 文件源码 项目:big-c 阅读 17 收藏 0 点赞 0 评论 0
@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;
}
SchemaBranchStorable.java 文件源码 项目:registry 阅读 21 收藏 0 点赞 0 评论 0
@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);
}
SubmissionJudge.java 文件源码 项目:coj-web 阅读 30 收藏 0 点赞 0 评论 0
@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";
}
SubmissionJudge.java 文件源码 项目:coj-web 阅读 19 收藏 0 点赞 0 评论 0
@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;
    }
}
ScimBulkResponse.java 文件源码 项目:gluu 阅读 18 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name = "Operations")
@XmlElement(name = "operation")
@JsonIgnore
public List<BulkResponses> getOperations() {

    return this.Operations;
}
ScimBulkOperation.java 文件源码 项目:gluu 阅读 16 收藏 0 点赞 0 评论 0
@JsonIgnore
@XmlElementWrapper(name = "Operations")
@XmlElement(name = "operation")
public List<BulkRequests> getOperations() {

    return this.Operations;
}
ScimBulkResponse.java 文件源码 项目:gluu 阅读 19 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name = "Operations")
@XmlElement(name = "operation")
@JsonIgnore
public List<BulkResponse> getOperations() {

    return this.Operations;
}
ScimBulkResponse.java 文件源码 项目:gluu 阅读 22 收藏 0 点赞 0 评论 0
@XmlElementWrapper(name = "Operations")
@XmlElement(name = "operation")
@JsonIgnore
public List<BulkResponses> getOperations() {

    return this.Operations;
}
ScimBulkOperation.java 文件源码 项目:gluu 阅读 22 收藏 0 点赞 0 评论 0
@JsonIgnore
@XmlElementWrapper(name = "Operations")
@XmlElement(name = "operation")
public List<BulkRequests> getOperations() {

    return this.Operations;
}
ClientConfiguration.java 文件源码 项目:biospectra 阅读 22 收藏 0 点赞 0 评论 0
@JsonIgnore
public synchronized void saveTo(File file) throws IOException {
    if(file == null) {
        throw new IllegalArgumentException("file is null");
    }

    JsonSerializer serializer = new JsonSerializer();
    serializer.toJsonFile(file, this);
}
PullRequestCreatedEvent.java 文件源码 项目:jira-dvcs-connector 阅读 18 收藏 0 点赞 0 评论 0
@Nonnull
@Override
@JsonIgnore
public Date getDate()
{
    return getPullRequest().getCreatedOn();
}
TaxonTreeDescription.java 文件源码 项目:biospectra 阅读 21 收藏 0 点赞 0 评论 0
@JsonIgnore
public synchronized void saveTo(File file) throws IOException {
    if(file == null) {
        throw new IllegalArgumentException("file is null");
    }

    JsonSerializer serializer = new JsonSerializer();
    serializer.toJsonFile(file, this);
}
Project.java 文件源码 项目:u-qasar.platform 阅读 19 收藏 0 点赞 0 评论 0
@JsonIgnore
public Integer getDateProgressInPercent() {
    float elapsedDays = getElapsedDays();
    float totalDays = getDurationInDays();
    if (elapsedDays <= 0) {
        return 0;
    }
    if (elapsedDays > totalDays) {
        return 100;
    }
    return Float.valueOf((elapsedDays / totalDays) * 100f).intValue();
}
User.java 文件源码 项目:u-qasar.platform 阅读 19 收藏 0 点赞 0 评论 0
@JsonIgnore
@XmlTransient
public boolean matchesInputFilter(final String filter) {
    if (filter == null || filter.isEmpty()) {
        return true;
    }
    if (this.getFullNameWithUserName() == null || this.
            getFullNameWithUserName().isEmpty()) {
        return false;
    }
    return this.getFullNameWithUserName().toLowerCase().contains(filter.
            toLowerCase());
}
TopologyTestRunCaseSink.java 文件源码 项目:streamline 阅读 16 收藏 0 点赞 0 评论 0
@JsonIgnore
@Override
public PrimaryKey getPrimaryKey() {
    Map<Schema.Field, Object> fieldToObjectMap = new HashMap<Schema.Field, Object>();
    fieldToObjectMap.put(new Schema.Field("id", Schema.Type.LONG), this.id);
    return new PrimaryKey(fieldToObjectMap);
}
ServerConfiguration.java 文件源码 项目:biospectra 阅读 21 收藏 0 点赞 0 评论 0
@JsonIgnore
public synchronized void saveTo(File file) throws IOException {
    if(file == null) {
        throw new IllegalArgumentException("file is null");
    }

    JsonSerializer serializer = new JsonSerializer();
    serializer.toJsonFile(file, this);
}
ClassificationResult.java 文件源码 项目:biospectra 阅读 20 收藏 0 点赞 0 评论 0
@JsonIgnore
public synchronized void saveTo(File file) throws IOException {
    if(file == null) {
        throw new IllegalArgumentException("file is null");
    }

    JsonSerializer serializer = new JsonSerializer();
    serializer.toJsonFile(file, this);
}


问题


面经


文章

微信
公众号

扫码关注公众号