Java 类javax.json.bind.annotation.JsonbTransient 实例源码

项目:yasson    文件:AnnotationIntrospector.java   
/**
 * Checks if property is annotated transient. If JsonbTransient annotation is present on field getter or setter, and other annotation is present
 * on either of it, JsonbException is thrown with message describing collision.
 *
 * @param property  The property to inspect if there is any {@link JsonbTransient} annotation defined for it
 * @return  Set of {@link AnnotationTarget}s specifying in which scope the {@link JsonbTransient} is applied
 */
public EnumSet<AnnotationTarget> getJsonbTransientCategorized(Property property) {
    Objects.requireNonNull(property);
    EnumSet<AnnotationTarget> transientTarget = EnumSet.noneOf(AnnotationTarget.class);
    Map<AnnotationTarget, JsonbTransient> annotationFromPropertyCategorized = getAnnotationFromPropertyCategorized(JsonbTransient.class, property);
    if (annotationFromPropertyCategorized.size() > 0) {
        transientTarget.addAll(annotationFromPropertyCategorized.keySet());
        return transientTarget;
    }

    return transientTarget;
}
项目:yasson    文件:JsonbTransientCollisionOnSetter.java   
@JsonbTransient
@JsonbProperty("custom_name")
public void setTransientProperty(String transientProperty) {
    this.transientProperty = transientProperty;
}
项目:yasson    文件:TransientGetterPlusCustomizationAnnotatedFieldContainer.java   
@JsonbTransient
public String getInstance() {
    return instance;
}
项目:yasson    文件:JsonbTransientCollisionOnGetter.java   
@JsonbTransient
@JsonbProperty("custom_name")
public String getTransientProperty() {
    return transientProperty;
}
项目:yasson    文件:TransientSetterPlusCustomizationAnnotatedGetterContainer.java   
@JsonbTransient
public void setInstance(String instance) {
    this.instance = instance;
}
项目:yasson    文件:TransientSetterPlusCustomizationAnnotatedFieldContainer.java   
@JsonbTransient
public void setInstance(String instance) {
    this.instance = instance;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public String getGetterTransient() {
    return getterTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public void setSetterTransient(String setterTransient) {
    this.setterTransient = setterTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public String getGetterAndPropertyTransient() {
    return getterAndPropertyTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public void setSetterAndPropertyTransient(String setterAndPropertyTransient) {
    this.setterAndPropertyTransient = setterAndPropertyTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public String getSetterAndGetterTransient() {
    return setterAndGetterTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public void setSetterAndGetterTransient(String setterAndGetterTransient) {
    this.setterAndGetterTransient = setterAndGetterTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public String getSetterAndGetterAndPropertyTransient() {
    return setterAndGetterAndPropertyTransient;
}
项目:yasson    文件:JsonbTransientValue.java   
@JsonbTransient
public void setSetterAndGetterAndPropertyTransient(String setterAndGetterAndPropertyTransient) {
    this.setterAndGetterAndPropertyTransient = setterAndGetterAndPropertyTransient;
}
项目:johnzon    文件:JsonbAccessMode.java   
private boolean isTransient(final DecoratedType t) {
    return t.getAnnotation(JsonbTransient.class) != null;
}