当前位置: 首页>>代码示例>>Java>>正文


Java VisibilityChecker.withFieldVisibility方法代码示例

本文整理汇总了Java中com.fasterxml.jackson.databind.introspect.VisibilityChecker.withFieldVisibility方法的典型用法代码示例。如果您正苦于以下问题:Java VisibilityChecker.withFieldVisibility方法的具体用法?Java VisibilityChecker.withFieldVisibility怎么用?Java VisibilityChecker.withFieldVisibility使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.fasterxml.jackson.databind.introspect.VisibilityChecker的用法示例。


在下文中一共展示了VisibilityChecker.withFieldVisibility方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDefaultVisibilityChecker

import com.fasterxml.jackson.databind.introspect.VisibilityChecker; //导入方法依赖的package包/类
@Override
public VisibilityChecker<?> getDefaultVisibilityChecker()
{
    VisibilityChecker<?> vchecker = super.getDefaultVisibilityChecker();
    if (!isEnabled(MapperFeature.AUTO_DETECT_GETTERS)) {
        vchecker = vchecker.withGetterVisibility(Visibility.NONE);
    }
    // then global overrides (disabling)
    if (!isEnabled(MapperFeature.AUTO_DETECT_IS_GETTERS)) {
        vchecker = vchecker.withIsGetterVisibility(Visibility.NONE);
    }
    if (!isEnabled(MapperFeature.AUTO_DETECT_FIELDS)) {
        vchecker = vchecker.withFieldVisibility(Visibility.NONE);
    }
    return vchecker;
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:17,代码来源:SerializationConfig.java

示例2: getDefaultVisibilityChecker

import com.fasterxml.jackson.databind.introspect.VisibilityChecker; //导入方法依赖的package包/类
public final VisibilityChecker<?> getDefaultVisibilityChecker()
{
  VisibilityChecker localVisibilityChecker = super.getDefaultVisibilityChecker();
  if (!isEnabled(MapperFeature.AUTO_DETECT_GETTERS))
    localVisibilityChecker = localVisibilityChecker.withGetterVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(MapperFeature.AUTO_DETECT_IS_GETTERS))
    localVisibilityChecker = localVisibilityChecker.withIsGetterVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(MapperFeature.AUTO_DETECT_FIELDS))
    localVisibilityChecker = localVisibilityChecker.withFieldVisibility(JsonAutoDetect.Visibility.NONE);
  return localVisibilityChecker;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:12,代码来源:SerializationConfig.java

示例3: getDefaultVisibilityChecker

import com.fasterxml.jackson.databind.introspect.VisibilityChecker; //导入方法依赖的package包/类
public final VisibilityChecker<?> getDefaultVisibilityChecker()
{
  VisibilityChecker localVisibilityChecker = super.getDefaultVisibilityChecker();
  if (!isEnabled(MapperFeature.AUTO_DETECT_SETTERS))
    localVisibilityChecker = localVisibilityChecker.withSetterVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(MapperFeature.AUTO_DETECT_CREATORS))
    localVisibilityChecker = localVisibilityChecker.withCreatorVisibility(JsonAutoDetect.Visibility.NONE);
  if (!isEnabled(MapperFeature.AUTO_DETECT_FIELDS))
    localVisibilityChecker = localVisibilityChecker.withFieldVisibility(JsonAutoDetect.Visibility.NONE);
  return localVisibilityChecker;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:12,代码来源:DeserializationConfig.java

示例4: getDefaultVisibilityChecker

import com.fasterxml.jackson.databind.introspect.VisibilityChecker; //导入方法依赖的package包/类
@Override
public VisibilityChecker<?> getDefaultVisibilityChecker()
{
    VisibilityChecker<?> vchecker = super.getDefaultVisibilityChecker();
    if (!isEnabled(MapperFeature.AUTO_DETECT_SETTERS)) {
        vchecker = vchecker.withSetterVisibility(Visibility.NONE);
    }
    if (!isEnabled(MapperFeature.AUTO_DETECT_CREATORS)) {
        vchecker = vchecker.withCreatorVisibility(Visibility.NONE);
    }
    if (!isEnabled(MapperFeature.AUTO_DETECT_FIELDS)) {
        vchecker = vchecker.withFieldVisibility(Visibility.NONE);
    }
    return vchecker;
}
 
开发者ID:joyplus,项目名称:joyplus-tv,代码行数:16,代码来源:DeserializationConfig.java


注:本文中的com.fasterxml.jackson.databind.introspect.VisibilityChecker.withFieldVisibility方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。