Search in sources :

Example 56 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project webanno by webanno.

the class KeyBinding method asKeyTypes.

@JsonIgnore
public KeyType[] asKeyTypes() {
    List<KeyType> combo = new ArrayList<>();
    if (isNotBlank(keyCombo)) {
        for (String key : keyCombo.split(" ")) {
            KeyType type = KEY_MAP.get(key.toUpperCase(Locale.US));
            combo.add(type);
        }
    }
    return combo.toArray(new KeyType[combo.size()]);
}
Also used : KeyType(wicket.contrib.input.events.key.KeyType) ArrayList(java.util.ArrayList) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 57 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project killbill by killbill.

the class NodeInterval method isPartitionedByChildren.

@JsonIgnore
public boolean isPartitionedByChildren() {
    if (leftChild == null) {
        return false;
    }
    LocalDate curDate = start;
    NodeInterval curChild = leftChild;
    while (curChild != null) {
        if (curChild.getStart().compareTo(curDate) > 0) {
            return false;
        }
        curDate = curChild.getEnd();
        curChild = curChild.getRightSibling();
    }
    return (curDate.compareTo(end) == 0);
}
Also used : LocalDate(org.joda.time.LocalDate) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 58 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project hono by eclipse.

the class TenantObject method getAdapterConfigurations.

/**
 * Gets the configuration information for this tenant's
 * configured adapters.
 *
 * @return The configuration properties for this tenant's
 *         configured adapters or {@code null} if no specific
 *         configuration has been set for any protocol adapter.
 */
@JsonIgnore
public JsonArray getAdapterConfigurations() {
    if (adapterConfigurations == null) {
        return null;
    } else {
        final JsonArray result = new JsonArray();
        adapterConfigurations.values().forEach(config -> result.add((JsonObject) config));
        return result;
    }
}
Also used : JsonArray(io.vertx.core.json.JsonArray) JsonObject(io.vertx.core.json.JsonObject) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 59 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project ORCID-Source by ORCID.

the class ExternalID method getGroupId.

/**
 * If we have a normalized value, use that to generate Group ID;
 */
@Override
@JsonIgnore
public String getGroupId() {
    String workIdVal = null;
    if (this.getNormalized() != null && !StringUtils.isEmpty(this.getNormalized().getValue())) {
        workIdVal = this.getNormalized().getValue();
    } else {
        workIdVal = this.value == null ? null : this.value;
    }
    String typeVal = this.type == null ? null : this.type;
    return workIdVal + typeVal;
}
Also used : TransientNonEmptyString(org.orcid.jaxb.model.v3.dev1.common.TransientNonEmptyString) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Example 60 with JsonIgnore

use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project SONG by overture-stack.

the class DonorWithSpecimens method createDonor.

@JsonIgnore
public Donor createDonor() {
    val donor = Donor.create(getDonorId(), getDonorSubmitterId(), getStudyId(), getDonorGender());
    donor.setInfo(getInfoAsString());
    return donor;
}
Also used : lombok.val(lombok.val) JsonIgnore(com.fasterxml.jackson.annotation.JsonIgnore)

Aggregations

JsonIgnore (com.fasterxml.jackson.annotation.JsonIgnore)113 lombok.val (lombok.val)14 ArrayList (java.util.ArrayList)12 HashMap (java.util.HashMap)8 Map (java.util.Map)8 HashSet (java.util.HashSet)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)5 Date (java.util.Date)5 Field (com.hortonworks.registries.common.Schema.Field)4 Set (java.util.Set)4 Schema (com.hortonworks.registries.common.Schema)3 PrimaryKey (com.hortonworks.registries.storage.PrimaryKey)3 EntitlementException (com.sun.identity.entitlement.EntitlementException)3 PolicyException (com.sun.identity.policy.PolicyException)3 JsonArray (io.vertx.core.json.JsonArray)3 List (java.util.List)3 SequenceFile (ca.corefacility.bioinformatics.irida.model.sequenceFile.SequenceFile)2 TrustAndKeyProvider (com.codingchili.core.security.TrustAndKeyProvider)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)2 TypeReference (com.fasterxml.jackson.core.type.TypeReference)2