Class CompositeCharsetDef
java.lang.Object
nablarch.core.validation.validator.unicode.CharsetDefSupport
nablarch.core.validation.validator.unicode.CompositeCharsetDef
- All Implemented Interfaces:
CharsetDef
複数の
本クラスでは、他の許容文字集合定義の組み合わせにより文字集合を定義できる。
CharsetDefの組み合わせによる許容文字集合定義クラス。本クラスでは、他の許容文字集合定義の組み合わせにより文字集合を定義できる。
<!-- 2つの許容文字集合定義を組み合わせ -->
<component name="composite" class="nablarch.core.validation.validator.unicode.CompositeCharsetDef">\
<property name="charsetDefList">
<list>
<component-ref name="asciiWithoutControlCode"/>
<component-ref name="zenkakuKatakanaCharset"/>
</list>
</property>
</component>
<!-- ASCII -->
<component name="asciiWithoutControlCode" class="nablarch.core.validation.validator.unicode.RangedCharsetDef">
<property name="startCodePoint" value="U+0020" />
<property name="endCodePoint" value="U+007E" />
</component>
<!-- 全角カタカナ -->
<component name="zenkakuKatakanaCharset"
class="nablarch.core.validation.validator.unicode.CompositeCharsetDef">
<property name="charsetDefList">
<list>
<component-ref name="zenkakuKatakanaCharsDef" />
<component-ref name="zenkakuSpaceDef" />
</list>
</property>
</component>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int codePoint) コードポイントが許容文字であるか判定する。voidsetCharsetDefList(List<? extends CharsetDef> definitions) 許容文字集合定義のリストを設定する。Methods inherited from class nablarch.core.validation.validator.unicode.CharsetDefSupport
getMessageId, setMessageId
-
Constructor Details
-
CompositeCharsetDef
public CompositeCharsetDef()
-
-
Method Details
-
contains
public boolean contains(int codePoint) コードポイントが許容文字であるか判定する。- Parameters:
codePoint- Unicodeコードポイント- Returns:
- 許容文字である場合、真
-
setCharsetDefList
許容文字集合定義のリストを設定する。- Parameters:
definitions- 許容文字集合定義のリスト
-