javax.json.bind.annotation.JsonbTransient Java Examples

The following examples show how to use javax.json.bind.annotation.JsonbTransient. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Player.java    From liberty-bikes with Eclipse Public License 1.0 5 votes vote down vote up
@JsonbTransient
public DOMAIN getDomain() {
    for (DOMAIN d : DOMAIN.values()) {
        if (id.startsWith(d.toString()))
            return d;
    }
    return DOMAIN.BASIC;
}
 
Example #2
Source File: GameRound.java    From liberty-bikes with Eclipse Public License 1.0 5 votes vote down vote up
@JsonbTransient
public boolean isPlayer(Session s) {
    Client c = clients.get(s);
    return c != null && c.player.isPresent();
}
 
Example #3
Source File: JsonbParser.java    From typescript-generator with MIT License 5 votes vote down vote up
private boolean isTransient(final JsonbParser.DecoratedType t) {
    if (t.getAnnotation(JsonbTransient.class) != null) {
        return true;
    }
    if (JsonbParser.FieldAccessMode.FieldDecoratedType.class.isInstance(t)) {
        final Field field = JsonbParser.FieldAccessMode.FieldDecoratedType.class.cast(t).getField();
        return Modifier.isTransient(field.getModifiers()) || Modifier.isStatic(field.getModifiers());
    }
    return false;
}
 
Example #4
Source File: SuperHero.java    From microprofile-graphql with Apache License 2.0 4 votes vote down vote up
@JsonbTransient
public void setNamesOfKnownEnemies(List<String> namesOfKnownEnemies) {
    this.namesOfKnownEnemies = namesOfKnownEnemies;
}
 
Example #5
Source File: Item.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@JsonbTransient // Avoid infinite loop when serializing
public Collection getCollection() {
    return collection;
}
 
Example #6
Source File: Item.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@JsonbTransient // Avoid infinite loop when serialising
public Collection getCollection() {
    return collection;
}
 
Example #7
Source File: Schema.java    From component-runtime with Apache License 2.0 4 votes vote down vote up
@JsonbTransient
@Override
public String getOriginalFieldName() {
    return null;
}
 
Example #8
Source File: SchemaImpl.java    From component-runtime with Apache License 2.0 4 votes vote down vote up
@JsonbTransient
public String getOriginalFieldName() {
    return rawName != null ? rawName : name;
}
 
Example #9
Source File: GameRound.java    From liberty-bikes with Eclipse Public License 1.0 4 votes vote down vote up
@JsonbTransient
public Set<Player> getPlayers() {
    return board.players;
}
 
Example #10
Source File: GameRound.java    From liberty-bikes with Eclipse Public License 1.0 4 votes vote down vote up
@JsonbTransient
public boolean isStarted() {
    return gameState != State.OPEN && gameState != State.FULL;
}
 
Example #11
Source File: GameRound.java    From liberty-bikes with Eclipse Public License 1.0 4 votes vote down vote up
@JsonbTransient
public boolean isOpen() {
    return gameState == State.OPEN;
}
 
Example #12
Source File: Player.java    From liberty-bikes with Eclipse Public License 1.0 4 votes vote down vote up
@JsonbTransient
public short getPlayerNum() {
    return this.playerNum;
}
 
Example #13
Source File: Player.java    From liberty-bikes with Eclipse Public License 1.0 4 votes vote down vote up
@JsonbTransient
public boolean isRealPlayer() {
    return ai == null;
}
 
Example #14
Source File: LayerConfigData.java    From jeddict with Apache License 2.0 4 votes vote down vote up
@JsonbTransient
public abstract List<String> getUsageDetails();
 
Example #15
Source File: PanacheEntityBase.java    From quarkus with Apache License 2.0 3 votes vote down vote up
/**
 * Returns true if this entity is persistent in the database. If yes, all modifications to
 * its persistent fields will be automatically committed to the database at transaction
 * commit time.
 *
 * @return true if this entity is persistent in the database.
 */
@JsonbTransient
// @JsonIgnore is here to avoid serialization of this property with jackson
@JsonIgnore
public boolean isPersistent() {
    return JpaOperations.isPersistent(this);
}
 
Example #16
Source File: LayerConfigData.java    From jeddict with Apache License 2.0 2 votes vote down vote up
@JsonbTransient
protected void onLayerConnection() {

}