keycloak
クラス | 公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.models.utils.reflection.TypedPropertyCriteria クラス
org.keycloak.models.utils.reflection.TypedPropertyCriteria の継承関係図
Inheritance graph
org.keycloak.models.utils.reflection.TypedPropertyCriteria 連携図
Collaboration graph

クラス

enum  MatchOption
 

公開メンバ関数

 TypedPropertyCriteria (Class<?> propertyClass)
 
 TypedPropertyCriteria (Class<?> propertyClass, MatchOption matchOption)
 
boolean fieldMatches (Field f)
 
boolean methodMatches (Method m)
 

非公開メンバ関数

boolean match (Class<?> type)
 

非公開変数類

final Class<?> propertyClass
 
final MatchOption matchOption
 

詳解

A criteria that matches a property based on its type

参照
PropertyCriteria

クラス詳解

◆ org::keycloak::models::utils::reflection::TypedPropertyCriteria::MatchOption

enum org::keycloak::models::utils::reflection::TypedPropertyCriteria::MatchOption

Different options can be used to match a specific property based on its type. Regardless of the option chosen, if the property type equals the propertyClass it will be selected.

  • SUB_TYPE: Also consider properties where its type is a subtype of propertyClass. .
  • SUPER_TYPE: Also consider properties where its type is a superclass or superinterface of propertyClass. .
org.keycloak.models.utils.reflection.TypedPropertyCriteria.MatchOption 連携図
Collaboration graph
列挙値
ALL
SUB_TYPE
SUPER_TYPE

構築子と解体子

◆ TypedPropertyCriteria() [1/2]

org.keycloak.models.utils.reflection.TypedPropertyCriteria.TypedPropertyCriteria ( Class<?>  propertyClass)
inline
44  {
45  this(propertyClass, null);
46  }
final Class<?> propertyClass
Definition: TypedPropertyCriteria.java:41

◆ TypedPropertyCriteria() [2/2]

org.keycloak.models.utils.reflection.TypedPropertyCriteria.TypedPropertyCriteria ( Class<?>  propertyClass,
MatchOption  matchOption 
)
inline
48  {
49  if (propertyClass == null) {
50  throw new IllegalArgumentException("Property class can not be null.");
51  }
53  this.matchOption = matchOption;
54  }
final MatchOption matchOption
Definition: TypedPropertyCriteria.java:42
final Class<?> propertyClass
Definition: TypedPropertyCriteria.java:41

関数詳解

◆ fieldMatches()

boolean org.keycloak.models.utils.reflection.TypedPropertyCriteria.fieldMatches ( Field  f)
inline
56  {
57  return match(f.getType());
58  }
boolean match(Class<?> type)
Definition: TypedPropertyCriteria.java:64

◆ match()

boolean org.keycloak.models.utils.reflection.TypedPropertyCriteria.match ( Class<?>  type)
inlineprivate
64  {
65  if (propertyClass.equals(type)) {
66  return true;
67  } else {
68  boolean matchSubType = propertyClass.isAssignableFrom(type);
69 
70  if (MatchOption.SUB_TYPE == this.matchOption) {
71  return matchSubType;
72  }
73 
74  boolean matchSuperType = type.isAssignableFrom(propertyClass);
75 
76  if (MatchOption.SUPER_TYPE == this.matchOption) {
77  return matchSuperType;
78  }
79 
80  if (MatchOption.ALL == this.matchOption) {
81  return matchSubType || matchSuperType;
82  }
83  }
84 
85  return false;
86  }
final Class<?> propertyClass
Definition: TypedPropertyCriteria.java:41

◆ methodMatches()

boolean org.keycloak.models.utils.reflection.TypedPropertyCriteria.methodMatches ( Method  m)
inline

org.keycloak.models.utils.reflection.PropertyCriteriaを実装しています。

60  {
61  return match(m.getReturnType());
62  }
boolean match(Class<?> type)
Definition: TypedPropertyCriteria.java:64

メンバ詳解

◆ matchOption

final MatchOption org.keycloak.models.utils.reflection.TypedPropertyCriteria.matchOption
private

◆ propertyClass

final Class<?> org.keycloak.models.utils.reflection.TypedPropertyCriteria.propertyClass
private

このクラス詳解は次のファイルから抽出されました: