|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.framework.beans.util.AbstractCopy<S>
S - JavaBeansに対して操作を行うサブタイプです。public abstract class AbstractCopy<S extends AbstractCopy<S>>
JavaBeansやMapに対して操作を行う抽象クラスです。
| フィールドの概要 | |
|---|---|
protected char |
beanDelimiter
JavaBeanのデリミタです。 |
protected java.util.Map<java.lang.String,Converter> |
converterMap
特定のプロパティに関連付けられたコンバータです。 |
protected java.util.List<Converter> |
converters
特定のプロパティに関連付けられていないコンバータです。 |
protected static Converter |
DEFAULT_DATE_CONVERTER
日付用のデフォルトコンバータです。 |
protected static Converter |
DEFAULT_TIME_CONVERTER
時間用のデフォルトコンバータです。 |
protected static Converter |
DEFAULT_TIMESTAMP_CONVERTER
日時用のデフォルトコンバータです。 |
protected static java.lang.String[] |
EMPTY_STRING_ARRAY
空文字列の配列です。 |
protected java.lang.String[] |
excludePropertyNames
操作の対象に含めないプロパティ名の配列です。 |
protected boolean |
excludesNull
null値のプロパティを操作の対象外にするかどうかです。 |
protected boolean |
excludesWhitespace
空白を操作の対象外にするかどうかです。 |
protected java.lang.String[] |
includePropertyNames
操作の対象に含めるプロパティ名の配列です。 |
protected char |
mapDelimiter
Mapのデリミタです。 |
protected java.lang.String |
prefix
プレフィックスです。 |
| コンストラクタの概要 | |
|---|---|
AbstractCopy()
|
|
| メソッドの概要 | |
|---|---|
S |
beanDelimiter(char beanDelimiter)
JavaBeansのデリミタを設定します。 |
S |
converter(Converter converter,
java.lang.CharSequence... propertyNames)
コンバータを設定します。 |
protected java.lang.Object |
convertValue(java.lang.Object value,
java.lang.String destPropertyName,
java.lang.Class<?> destPropertyClass)
値を変換します。 |
protected void |
copyBeanToBean(java.lang.Object src,
java.lang.Object dest)
BeanからBeanにコピーを行います。 |
protected void |
copyBeanToMap(java.lang.Object src,
java.util.Map dest)
BeanからMapにコピーを行います。 |
protected void |
copyMapToBean(java.util.Map<java.lang.String,java.lang.Object> src,
java.lang.Object dest)
MapからBeanにコピーを行います。 |
protected void |
copyMapToMap(java.util.Map<java.lang.String,java.lang.Object> src,
java.util.Map<java.lang.String,java.lang.Object> dest)
MapからMapにコピーを行います。 |
S |
dateConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
日付のコンバータを設定します。 |
S |
excludes(java.lang.CharSequence... propertyNames)
操作の対象に含めないプロパティ名を指定します。 |
S |
excludesNull()
null値のプロパティを操作の対象外にします。 |
S |
excludesWhitespace()
空白のプロパティを操作の対象外にします。 |
protected Converter |
findConverter(java.lang.Class<?> clazz)
クラスに対応するコンバータを探します。 |
protected Converter |
findDefaultConverter(java.lang.Class<?> clazz)
クラスに対応するデフォルトのコンバータを探します。 |
S |
includes(java.lang.CharSequence... propertyNames)
操作の対象に含めるプロパティ名を指定します。 |
protected boolean |
isTargetProperty(java.lang.String name)
対象のプロパティかどうかを返します。 |
S |
mapDelimiter(char mapDelimiter)
Mapのデリミタを設定します。 |
S |
numberConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
数値のコンバータを設定します。 |
S |
prefix(java.lang.CharSequence prefix)
プレフィックスを指定します。 |
S |
sqlDateConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
SQL用日付のコンバータを設定します。 |
S |
timeConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
時間のコンバータを設定します。 |
S |
timestampConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
日時のコンバータを設定します。 |
protected java.lang.String[] |
toStringArray(java.lang.CharSequence[] charSequenceArray)
CharSequenceの配列をStringの配列に変換します。 |
protected java.lang.String |
trimPrefix(java.lang.String propertyName)
プレフィックスを削ります。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected static final java.lang.String[] EMPTY_STRING_ARRAY
protected static final Converter DEFAULT_DATE_CONVERTER
protected static final Converter DEFAULT_TIMESTAMP_CONVERTER
protected static final Converter DEFAULT_TIME_CONVERTER
protected java.lang.String[] includePropertyNames
protected java.lang.String[] excludePropertyNames
protected boolean excludesNull
protected boolean excludesWhitespace
protected java.lang.String prefix
protected char beanDelimiter
protected char mapDelimiter
protected java.util.Map<java.lang.String,Converter> converterMap
protected java.util.List<Converter> converters
| コンストラクタの詳細 |
|---|
public AbstractCopy()
| メソッドの詳細 |
|---|
protected java.lang.String[] toStringArray(java.lang.CharSequence[] charSequenceArray)
charSequenceArray - CharSequenceの配列
public S includes(java.lang.CharSequence... propertyNames)
propertyNames - プロパティ名の配列
public S excludes(java.lang.CharSequence... propertyNames)
propertyNames - プロパティ名の配列
public S excludesNull()
public S excludesWhitespace()
public S prefix(java.lang.CharSequence prefix)
prefix - プレフィックス
public S beanDelimiter(char beanDelimiter)
beanDelimiter - JavaBeansのデリミタ
public S mapDelimiter(char mapDelimiter)
mapDelimiter - Mapのデリミタ
public S converter(Converter converter,
java.lang.CharSequence... propertyNames)
converter - propertyNames -
public S dateConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
pattern - 日付のパターンpropertyNames - プロパティ名の配列
public S sqlDateConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
pattern - 日付のパターンpropertyNames - プロパティ名の配列
public S timeConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
pattern - 時間のパターンpropertyNames - プロパティ名の配列
public S timestampConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
pattern - 日時のパターンpropertyNames - プロパティ名の配列
public S numberConverter(java.lang.String pattern,
java.lang.CharSequence... propertyNames)
pattern - 数値のパターンpropertyNames - プロパティ名の配列
protected boolean isTargetProperty(java.lang.String name)
name - プロパティ名
protected void copyBeanToBean(java.lang.Object src,
java.lang.Object dest)
src - コピー元dest - コピー先
protected void copyBeanToMap(java.lang.Object src,
java.util.Map dest)
src - コピー元dest - コピー先
protected void copyMapToBean(java.util.Map<java.lang.String,java.lang.Object> src,
java.lang.Object dest)
src - コピー元dest - コピー先
protected void copyMapToMap(java.util.Map<java.lang.String,java.lang.Object> src,
java.util.Map<java.lang.String,java.lang.Object> dest)
src - コピー元dest - コピー先protected java.lang.String trimPrefix(java.lang.String propertyName)
propertyName - プロパティ名
protected java.lang.Object convertValue(java.lang.Object value,
java.lang.String destPropertyName,
java.lang.Class<?> destPropertyClass)
value - 値destPropertyName - コピー先のプロパティ名destPropertyClass - コピー先のプロパティクラス
protected Converter findConverter(java.lang.Class<?> clazz)
clazz - クラス
protected Converter findDefaultConverter(java.lang.Class<?> clazz)
clazz - クラス
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||