本文整理汇总了Java中javax.json.bind.annotation.JsonbTransient类的典型用法代码示例。如果您正苦于以下问题:Java JsonbTransient类的具体用法?Java JsonbTransient怎么用?Java JsonbTransient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonbTransient类属于javax.json.bind.annotation包,在下文中一共展示了JsonbTransient类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getJsonbTransientCategorized
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
/**
* 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;
}
开发者ID:eclipse,项目名称:yasson,代码行数:19,代码来源:AnnotationIntrospector.java
示例2: setTransientProperty
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
@JsonbProperty("custom_name")
public void setTransientProperty(String transientProperty) {
this.transientProperty = transientProperty;
}
开发者ID:eclipse,项目名称:yasson,代码行数:6,代码来源:JsonbTransientCollisionOnSetter.java
示例3: getInstance
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public String getInstance() {
return instance;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:TransientGetterPlusCustomizationAnnotatedFieldContainer.java
示例4: getTransientProperty
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
@JsonbProperty("custom_name")
public String getTransientProperty() {
return transientProperty;
}
开发者ID:eclipse,项目名称:yasson,代码行数:6,代码来源:JsonbTransientCollisionOnGetter.java
示例5: setInstance
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public void setInstance(String instance) {
this.instance = instance;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:TransientSetterPlusCustomizationAnnotatedGetterContainer.java
示例6: getGetterTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public String getGetterTransient() {
return getterTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例7: setSetterTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public void setSetterTransient(String setterTransient) {
this.setterTransient = setterTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例8: getGetterAndPropertyTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public String getGetterAndPropertyTransient() {
return getterAndPropertyTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例9: setSetterAndPropertyTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public void setSetterAndPropertyTransient(String setterAndPropertyTransient) {
this.setterAndPropertyTransient = setterAndPropertyTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例10: getSetterAndGetterTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public String getSetterAndGetterTransient() {
return setterAndGetterTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例11: setSetterAndGetterTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public void setSetterAndGetterTransient(String setterAndGetterTransient) {
this.setterAndGetterTransient = setterAndGetterTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例12: getSetterAndGetterAndPropertyTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public String getSetterAndGetterAndPropertyTransient() {
return setterAndGetterAndPropertyTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例13: setSetterAndGetterAndPropertyTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
@JsonbTransient
public void setSetterAndGetterAndPropertyTransient(String setterAndGetterAndPropertyTransient) {
this.setterAndGetterAndPropertyTransient = setterAndGetterAndPropertyTransient;
}
开发者ID:eclipse,项目名称:yasson,代码行数:5,代码来源:JsonbTransientValue.java
示例14: isTransient
import javax.json.bind.annotation.JsonbTransient; //导入依赖的package包/类
private boolean isTransient(final DecoratedType t) {
return t.getAnnotation(JsonbTransient.class) != null;
}
开发者ID:apache,项目名称:johnzon,代码行数:4,代码来源:JsonbAccessMode.java
注:本文中的javax.json.bind.annotation.JsonbTransient类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论