org.seasar.extension.dxo.annotation.impl
クラス TigerAnnotationReader

java.lang.Object
  上位を拡張 org.seasar.extension.dxo.annotation.impl.TigerAnnotationReader
すべての実装されたインタフェース:
AnnotationReader

public class TigerAnnotationReader
extends Object
implements AnnotationReader

DxoインタフェースまたはクラスやそのメソッドからTigerアノテーションを読み取るクラスです。

作成者:
koichik

フィールドの概要
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
<T extends Annotation>
T
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
 

フィールドの詳細

container

protected S2Container container
S2コンテナ


next

protected AnnotationReader next
後続のAnnotationReader


convertersCache

protected Map<Class<?>,Map<String,Converter>> convertersCache
コンバータのキャッシュ

コンストラクタの詳細

TigerAnnotationReader

public TigerAnnotationReader(S2Container container)
インスタンスを構築します。

パラメータ:
container - S2コンテナ

TigerAnnotationReader

public TigerAnnotationReader(S2Container container,
                             AnnotationReader next)
インスタンスを構築します。

パラメータ:
container - S2コンテナ
next - 後続のAnnotationReader
メソッドの詳細

getDatePattern

public String getDatePattern(Class dxoClass,
                             Method method)
定義:
インタフェース AnnotationReader 内の getDatePattern

getTimePattern

public String getTimePattern(Class dxoClass,
                             Method method)
定義:
インタフェース AnnotationReader 内の getTimePattern

getTimestampPattern

public String getTimestampPattern(Class dxoClass,
                                  Method method)
定義:
インタフェース AnnotationReader 内の getTimestampPattern

getConversionRule

public String getConversionRule(Class dxoClass,
                                Method method)
定義:
インタフェース AnnotationReader 内の getConversionRule

isExcludeNull

public boolean isExcludeNull(Class dxoClass,
                             Method method)
定義:
インタフェース AnnotationReader 内の isExcludeNull

getSourcePrefix

public String getSourcePrefix(Class dxoClass,
                              Method method)
定義:
インタフェース AnnotationReader 内の getSourcePrefix

getConverters

public Map getConverters(Class destClass)
定義:
インタフェース AnnotationReader 内の getConverters

getAnnotation

protected <T extends Annotation> T getAnnotation(Class<?> dxoClass,
                                                 Method method,
                                                 Class<T> annotationType)
指定アノテーションを取得して返します。

メソッドに指定のアノテーションが付与されていればそれを返します。 メソッドに指定のアノテーションが付与されていなければ、クラスに付与されているアノテーションを返します。 メソッドにもクラスに指定アノテーションが付与されていなければnullを返します。

型パラメータ:
T - アノテーションの型
パラメータ:
dxoClass - Dxoクラス
method - Dxoメソッド
annotationType - アノテーションの型
戻り値:
メソッドまたはクラスに付けられたアノテーション

createConverters

protected Map<String,Converter> createConverters(Class<?> destClass)
クラスに指定されたコンバータのMapを返します。

指定されたクラスのコンバータの指定されたプロパティについて、プロパティ名をキー、コンバータを値とするMapを作成します。

パラメータ:
destClass - 変換先のクラス
戻り値:
クラスに指定されたコンバータのMap


Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.