| Package | mx.validators |
| Class | public class RegExpValidationResult |
| Inheritance | RegExpValidationResult ValidationResult Object |
valid 이벤트와 invalid 이벤트를 dispatch합니다. invalid 이벤트에서는, event object가 ValidationResultEvent 클래스의 인스턴스이며,ValidationResultEvent.results property에 ValidationResult object의 배열이 포함됩니다.
한편,valid 이벤트의 경우,ValidationResultEvent.results property에는 RegExpValidationResult object의 배열이 포함됩니다. RegExpValidationResult 클래스는 ValidationResult 클래스의 아이 클래스가 되고 있어 정규 표현과 아울러 사용하는 property가 추가로 포함됩니다.
See also
| property | 정의 | ||
|---|---|---|---|
![]() | constructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor 함수에의 참조입니다.
| Object | |
![]() | errorCode : String
isError property의 값이 true 의 경우, 검증 에러 코드를 나타냅니다. | ValidationResult | |
![]() | errorMessage : String
isError property의 값이 true 의 경우, 검증 에러 메세지를 나타냅니다. | ValidationResult | |
![]() | isError : Boolean
필드에서 검증 에러가 발생하면, 값이
true 로 설정됩니다. | ValidationResult | |
| matchedIndex : int
일치한 입력 string중의 개시 인덱스를 포함한 정수를 나타냅니다.
| RegExpValidationResult | ||
| matchedString : String
정규 표현과 일치하는 입력 string의 substring가 포함된 string를 나타냅니다.
| RegExpValidationResult | ||
| matchedSubstrings : Array
string의 배열을 나타냅니다. 일치하는 substring가 존재하는 경우는, 그 substring가 괄호에 둘러싸인 상태로 배열내에 포함됩니다.
| RegExpValidationResult | ||
![]() | prototype : Object
[static]
클래스 또는 함수 object의 prototype object에의 참조입니다.
| Object | |
![]() | subField : String
결과와 관련지을 수 있고 있는 subfield의 이름을 나타냅니다.
| ValidationResult | |
| Methods | 정의 | ||
|---|---|---|---|
| RegExpValidationResult (isError:Boolean , subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
constructor 입니다.
| RegExpValidationResult | ||
![]() | hasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
| Object | |
![]() | isPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
| Object | |
![]() | propertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
| Object | |
![]() | setPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
| Object | |
![]() | toString ():String
지정된 object의 string 표현을 돌려줍니다.
| Object | |
![]() | valueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
| Object | |
| matchedIndex | property |
public var matchedIndex:int 일치한 입력 string중의 개시 인덱스를 포함한 정수를 나타냅니다.
| matchedString | property |
public var matchedString:String 정규 표현과 일치하는 입력 string의 substring가 포함된 string를 나타냅니다.
| matchedSubstrings | property |
public var matchedSubstrings:Array
string의 배열을 나타냅니다. 일치하는 substring가 존재하는 경우는, 그 substring가 괄호에 둘러싸인 상태로 배열내에 포함됩니다. substring에 일치하는 것이 발견되지 않는 경우, 이 배열의 길이는 0 이 됩니다. matchedSubStrings[0] 을 사용하면 최초로 substring가 일치한 것에 액세스 할 수 있습니다.
| RegExpValidationResult | () | constructor |
public 함수 RegExpValidationResult(isError:Boolean , subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)constructor 입니다.
ParametersisError:Boolean — 검증 에러가 발생했을 경우는,true 를 건네줍니다.
|
|
subField:String (default = "") — 검증한 object의 subfield의 이름을 나타냅니다.
|
|
errorCode:String (default = "") — 검증 에러 코드를 나타냅니다.
|
|
errorMessage:String (default = "") — 검증 에러 메세지를 나타냅니다.
|
|
matchedString:String (default = "") — 일치하는 substring입니다.
|
|
matchedIndex:int (default = 0) — 일치하는 string의 인덱스를 나타냅니다.
|
|
matchedSubstrings:Array (default = null) — 일치하는 substring의 배열을 나타냅니다.
|
코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트
현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/validators/RegExpValidationResult.html