|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.dxo.annotation.impl.TigerAnnotationReader
public class TigerAnnotationReader
DxoインタフェースまたはクラスやそのメソッドからTigerアノテーションを読み取るクラスです。
フィールドの概要 | |
---|---|
protected S2Container |
container
S2コンテナ |
protected Map<Class<?>,Map<String,Converter>> |
convertersCache
コンバータのキャッシュ |
protected AnnotationReader |
next
後続の AnnotationReader |
コンストラクタの概要 | |
---|---|
TigerAnnotationReader(S2Container container)
インスタンスを構築します。 |
|
TigerAnnotationReader(S2Container container,
AnnotationReader next)
インスタンスを構築します。 |
メソッドの概要 | ||
---|---|---|
protected Map<String,Converter> |
createConverters(Class<?> destClass)
クラスに指定されたコンバータの Map を返します。 |
|
protected
|
getAnnotation(Class<?> dxoClass,
Method method,
Class<T> annotationType)
指定アノテーションを取得して返します。 |
|
String |
getConversionRule(Class dxoClass,
Method method)
|
|
Map |
getConverters(Class destClass)
|
|
String |
getDatePattern(Class dxoClass,
Method method)
|
|
String |
getSourcePrefix(Class dxoClass,
Method method)
|
|
String |
getTimePattern(Class dxoClass,
Method method)
|
|
String |
getTimestampPattern(Class dxoClass,
Method method)
|
|
boolean |
isExcludeNull(Class dxoClass,
Method method)
|
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected S2Container container
protected AnnotationReader next
AnnotationReader
protected Map<Class<?>,Map<String,Converter>> convertersCache
コンストラクタの詳細 |
---|
public TigerAnnotationReader(S2Container container)
container
- S2コンテナpublic TigerAnnotationReader(S2Container container, AnnotationReader next)
container
- S2コンテナnext
- 後続のAnnotationReader
メソッドの詳細 |
---|
public String getDatePattern(Class dxoClass, Method method)
AnnotationReader
内の getDatePattern
public String getTimePattern(Class dxoClass, Method method)
AnnotationReader
内の getTimePattern
public String getTimestampPattern(Class dxoClass, Method method)
AnnotationReader
内の getTimestampPattern
public String getConversionRule(Class dxoClass, Method method)
AnnotationReader
内の getConversionRule
public boolean isExcludeNull(Class dxoClass, Method method)
AnnotationReader
内の isExcludeNull
public String getSourcePrefix(Class dxoClass, Method method)
AnnotationReader
内の getSourcePrefix
public Map getConverters(Class destClass)
AnnotationReader
内の getConverters
protected <T extends Annotation> T getAnnotation(Class<?> dxoClass, Method method, Class<T> annotationType)
メソッドに指定のアノテーションが付与されていればそれを返します。
メソッドに指定のアノテーションが付与されていなければ、クラスに付与されているアノテーションを返します。
メソッドにもクラスに指定アノテーションが付与されていなければnull
を返します。
T
- アノテーションの型dxoClass
- Dxoクラスmethod
- DxoメソッドannotationType
- アノテーションの型
protected Map<String,Converter> createConverters(Class<?> destClass)
Map
を返します。
指定されたクラスのコンバータの指定されたプロパティについて、プロパティ名をキー、コンバータを値とするMap
を作成します。
destClass
- 変換先のクラス
Map
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |