|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.doma.domain.AbstractDomain<V,D>
org.seasar.doma.domain.AbstractComparableDomain<String,D>
org.seasar.doma.domain.StringDomain<D>
D - ドメインの型public abstract class StringDomain<D extends StringDomain<D>>
String を値の型とするドメインの骨格実装です。
| フィールドの概要 |
|---|
| クラス org.seasar.doma.domain.AbstractDomain から継承されたフィールド |
|---|
changed, value, valueClass |
| コンストラクタの概要 | |
|---|---|
protected |
StringDomain()
デフォルトの値でインスタンス化します。 |
protected |
StringDomain(String value)
値を指定してインスタンス化します。 |
| メソッドの概要 | ||
|---|---|---|
|
accept(DomainVisitor<R,P,TH> visitor,
P p)
ビジターを受け入れます。 |
|
char |
charAt(int index)
ドメインの値から、指定されたインデックス位置にある char 値を返します |
|
boolean |
contains(CharSequence s)
ドメインの値が文字シーケンスを含んでいる場合 true を返します。 |
|
boolean |
endsWith(String suffix)
ドメインの値がサフィックスで終わっている場合 true を返します。 |
|
boolean |
equals(Object o)
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
ドメインの値が空文字の場合 true を返します。 |
|
int |
length()
ドメインの値の長さを返します。 |
|
boolean |
matches(String regex)
ドメインの値が正規表現にマッチした場合に true を返します。 |
|
boolean |
startsWith(String prefix)
ドメインの値がプレフィックスで始まっている場合 true を返します。 |
|
CharSequence |
subSequence(int start,
int end)
ドメインの値のサブシーケンスである新規文字シーケンスを返します |
|
String |
toString()
|
|
| クラス org.seasar.doma.domain.AbstractComparableDomain から継承されたメソッド |
|---|
assertComparable, assertComparable, compareTo, compareToInternal, eq, eq, ge, ge, gt, gt, le, le, lt, lt |
| クラス org.seasar.doma.domain.AbstractDomain から継承されたメソッド |
|---|
get, getValueClass, isChanged, isNull, set, setChanged, setDomain, setInternal, setNull |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース org.seasar.doma.domain.Domain から継承されたメソッド |
|---|
get, getValueClass, isChanged, isNull, set, setChanged, setDomain |
| コンストラクタの詳細 |
|---|
protected StringDomain()
protected StringDomain(String value)
value - 値| メソッドの詳細 |
|---|
public <R,P,TH extends Throwable> R accept(DomainVisitor<R,P,TH> visitor,
P p)
throws TH extends Throwable
Domain の記述:
Domain<String,D extends StringDomain<D>> 内の acceptR - 戻り値の型P - パラメータの型TH - 例外の型visitor - ビジターp - パラメータ
TH - 例外
TH extends Throwable
public boolean isEmpty()
throws DomainIllegalStateException
true を返します。
true
DomainIllegalStateException - ドメインの値が null の場合
public boolean startsWith(String prefix)
throws DomainIllegalStateException
true を返します。
prefix - プレフィックス
true
DomainIllegalStateException - ドメインの値が null の場合
public boolean endsWith(String suffix)
throws DomainIllegalStateException
true を返します。
suffix - サフィックス
true
DomainIllegalStateException - ドメインの値が null の場合
public int length()
throws DomainIllegalStateException
CharSequence 内の lengthDomainIllegalStateException - ドメインの値が null の場合
public boolean matches(String regex)
throws DomainIllegalStateException
true を返します。
regex - 正規表現
true
DomainIllegalStateException - ドメインの値が null の場合
PatternSyntaxException - 正規表現の構文が無効な場合
public boolean contains(CharSequence s)
throws DomainIllegalStateException
true を返します。
s - 文字シーケンス
true
DomainIllegalStateException - ドメインの値が null の場合
NullPointerException - 文字シーケンスが null の場合
public char charAt(int index)
throws DomainIllegalStateException
char 値を返します
CharSequence 内の charAtindex - インデックス
char
DomainIllegalStateException - ドメインの値が null の場合
IndexOutOfBoundsException - インデックスが負の値、またはドメインの値の長さ以上である場合
public CharSequence subSequence(int start,
int end)
throws DomainIllegalStateException
CharSequence 内の subSequenceDomainIllegalStateException - ドメインの値が null の場合
IndexOutOfBoundsException - start または end が負の値の場合、end の値が
ドメインの値の長さ より大きい場合、start の値が end よりも大きい場合public boolean equals(Object o)
Object 内の equalspublic int hashCode()
Object 内の hashCodepublic String toString()
CharSequence 内の toStringAbstractDomain<String,D extends StringDomain<D>> 内の toString
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||