Paket | mx.validators |
Klass | public class RegExpValidationResult |
Arv | RegExpValidationResult ValidationResult Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | 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 |
Metod | Definieras med | ||
---|---|---|---|
RegExpValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
Constructor
| RegExpValidationResult | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
matchedIndex | egenskap |
public var matchedIndex:int
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
An integer that contains the starting index in the input String of the match.
matchedString | egenskap |
public var matchedString:String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A String that contains the substring of the input String that matches the regular expression.
matchedSubstrings | egenskap |
public var matchedSubstrings:Array
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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 | () | Konstruktor |
public function RegExpValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor
ParametrarisError: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, 01:40 PM Z