패키지 | mx.validators |
클래스 | public class RegExpValidationResult |
상속 | RegExpValidationResult ValidationResult Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
valid
and invalid
events.
For an invalid
event, the event object
is an instance of the ValidationResultEvent class,
and the ValidationResultEvent.results
property
contains an Array of ValidationResult objects.
However, for a valid
event, the
ValidationResultEvent.results
property contains
an Array of RegExpValidationResult objects.
The RegExpValidationResult class is a child class
of the ValidationResult class, and contains additional properties
used with regular expressions.
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
errorCode : String
The validation error code
if the value of the isError property is true. | ValidationResult | ||
errorMessage : String
The validation error message
if the value of the isError property is true. | ValidationResult | ||
isError : Boolean
Contains true if the field generated a validation failure. | ValidationResult | ||
matchedIndex : int
An integer that contains the starting index
in the input String of the match. | RegExpValidationResult | ||
matchedString : String
A String that contains the substring of the input String
that matches the regular expression. | RegExpValidationResult | ||
matchedSubstrings : Array
An Array of Strings that contains parenthesized
substring matches, if any. | RegExpValidationResult | ||
subField : String
The name of the subfield that the result is associated with. | ValidationResult |
메서드 | 정의 주체 | ||
---|---|---|---|
RegExpValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
Constructor
| RegExpValidationResult | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object |
matchedIndex | 속성 |
public var matchedIndex:int
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
An integer that contains the starting index in the input String of the match.
matchedString | 속성 |
public var matchedString:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
A String that contains the substring of the input String that matches the regular expression.
matchedSubstrings | 속성 |
public var matchedSubstrings:Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
An Array of Strings that contains parenthesized
substring matches, if any.
If no substring matches are found, this Array is of length 0.
Use matchedSubStrings[0]
to access
the first substring match.
RegExpValidationResult | () | 생성자 |
public function RegExpValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor
매개 변수isError:Boolean — Pass true if there was a validation error.
| |
subField:String (default = " ") — Name of the subfield of the validated Object.
| |
errorCode:String (default = " ") — Validation error code.
| |
errorMessage:String (default = " ") — Validation error message.
| |
matchedString:String (default = " ") — Matching substring.
| |
matchedIndex:int (default = 0 ) — Index of the matching String.
| |
matchedSubstrings:Array (default = null ) — Array of substring matches.
|
Tue Jun 12 2018, 03:17 PM Z