Packagejp.co.fujitsu.reffi.client.flex.validator
Classpublic class CharacterTypeValidator
InheritanceCharacterTypeValidator Inheritance mx.validators.StringValidator

[概 要]

入力文字の文字種をチェックするクラスです.

[詳 細]

呼び出し元で指定された入力チェック条件に従い、入力文字のチェック処理を実施します。

[備 考]

Copyright (c) 2008-2009 FUJITSU Japan All rights reserved.



Public Properties
 PropertyDefined by
  type_ascii_alphabet : Boolean

[概 要]

半角英字の入力可否を設定します.
CharacterTypeValidator
  type_ascii_number : Boolean

[概 要]

数字の入力可否を設定します.
CharacterTypeValidator
  type_ascii_other : Boolean

[概 要]

半角記号の入力可否を設定します.
CharacterTypeValidator
  type_ascii_space : Boolean

[概 要]

半角スペースの入力可否を設定します.
CharacterTypeValidator
  type_wide : Boolean

[概 要]

全角文字の入力可否を設定します.
CharacterTypeValidator
Protected Methods
 MethodDefined by
  
doValidation(value:Object):Array

[概 要]

入力文字のチェック結果を返却します.
CharacterTypeValidator
Property detail
type_ascii_alphabetproperty
type_ascii_alphabet:Boolean  [read-write]

[概 要]

半角英字の入力可否を設定します.

[詳 細]

半角英字(a-z,A-Z)の入力可否を表します。

[備 考]

The default value is true(入力可).

実装
    public function get type_ascii_alphabet():Boolean
    public function set type_ascii_alphabet(value:Boolean):void
type_ascii_numberproperty 
type_ascii_number:Boolean  [read-write]

[概 要]

数字の入力可否を設定します.

[詳 細]

半角数字(0-9)の入力可否を表します。

[備 考]

The default value is true(入力可).

実装
    public function get type_ascii_number():Boolean
    public function set type_ascii_number(value:Boolean):void
type_ascii_otherproperty 
type_ascii_other:Boolean  [read-write]

[概 要]

半角記号の入力可否を設定します.

[詳 細]

半角記号(!"#$%&'(),-./:;<=>?

The default value is true(入力可).

実装
    public function get type_ascii_other():Boolean
    public function set type_ascii_other(value:Boolean):void
type_ascii_spaceproperty 
type_ascii_space:Boolean  [read-write]

[概 要]

半角スペースの入力可否を設定します.

[詳 細]

半角スペース(0x20)の入力可否を表します。

[備 考]

The default value is true(入力可).

実装
    public function get type_ascii_space():Boolean
    public function set type_ascii_space(value:Boolean):void
type_wideproperty 
type_wide:Boolean  [read-write]

[概 要]

全角文字の入力可否を設定します.

[詳 細]

全角文字(JIS非漢字、JIS第一水準漢字、JIS第二水準漢字)の入力可否を表します。

[備 考]

The default value is true(入力可).

実装
    public function get type_wide():Boolean
    public function set type_wide(value:Boolean):void
Method detail
doValidation()method
protected override function doValidation(value:Object):Array

[概 要]

入力文字のチェック結果を返却します.

[詳 細]

入力文字をチェックし、指定文字以外の入力文字が存在した場合は、
指定されたエラーメッセージを結果配列に設定します。

[備 考]

パラメータ
value:Object — 入力文字列

戻り値
Array — チェック結果配列