Pakket | mx.utils |
Klasse | public class RPCUIDUtil |
Overerving | RPCUIDUtil Object |
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Methode | Gedefinieerd door | ||
---|---|---|---|
[statisch]
Generates a UID (unique identifier) based on ActionScript's
pseudo-random number generator and the current time. | RPCUIDUtil | ||
[statisch]
Converts a 128-bit UID encoded as a ByteArray to a String representation. | RPCUIDUtil | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
[statisch]
A utility method to check whether a String value represents a
correctly formatted UID value. | RPCUIDUtil | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
[statisch]
Converts a UID formatted String to a ByteArray. | RPCUIDUtil | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | ||
Retourneert de primitieve waarde van het opgegeven object. | Object |
createUID | () | methode |
public static function createUID():String
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Generates a UID (unique identifier) based on ActionScript's pseudo-random number generator and the current time.
The UID has the form
"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
where X is a hexadecimal digit (0-9, A-F).
This UID will not be truly globally unique; but it is the best we can do without player support for UID generation.
Geretourneerde waardeString — The newly-generated UID.
|
fromByteArray | () | methode |
public static function fromByteArray(ba:ByteArray):String
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Converts a 128-bit UID encoded as a ByteArray to a String representation. The format matches that generated by createUID. If a suitable ByteArray is not provided, null is returned.
Parameters
ba:ByteArray — ByteArray 16 bytes in length representing a 128-bit UID.
|
String — String representation of the UID, or null if an invalid
ByteArray is provided.
|
isUID | () | methode |
public static function isUID(uid:String):Boolean
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
A utility method to check whether a String value represents a correctly formatted UID value. UID values are expected to be in the format generated by createUID(), implying that only capitalized A-F characters in addition to 0-9 digits are supported.
Parameters
uid:String — The value to test whether it is formatted as a UID.
|
Boolean — Returns true if the value is formatted as a UID.
|
toByteArray | () | methode |
public static function toByteArray(uid:String):ByteArray
Taalversie: | ActionScript 3.0 |
Productversie: | Flex 3 |
Runtimeversies: | Flash Player 9, AIR 1.1 |
Converts a UID formatted String to a ByteArray. The UID must be in the format generated by createUID, otherwise null is returned.
Parameters
uid:String — representing a 128-bit UID
|
ByteArray — ByteArray 16 bytes in length representing the 128-bits of the
UID or null if the uid could not be converted.
|
Wed Jun 13 2018, 11:42 AM Z