Pacchetto | mx.validators |
Classe | public class RegExpValidationResult |
Ereditarietà | RegExpValidationResult ValidationResult Object |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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.
Elementi API correlati
Proprietà | Definito da | ||
---|---|---|---|
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | 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 |
Metodo | Definito da | ||
---|---|---|---|
RegExpValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
Constructor
| RegExpValidationResult | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object |
matchedIndex | proprietà |
public var matchedIndex:int
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
An integer that contains the starting index in the input String of the match.
matchedString | proprietà |
public var matchedString:String
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
A String that contains the substring of the input String that matches the regular expression.
matchedSubstrings | proprietà |
public var matchedSubstrings:Array
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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 | () | Funzione di costruzione |
public function RegExpValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "", matchedString:String = "", matchedIndex:int = 0, matchedSubstrings:Array = null)
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Constructor
ParametriisError: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, 02:44 PM Z