Packagelc.core
Classpublic class Message
InheritanceMessage Inheritance Object
Subclasses CompositeMessage

The Message class encapsulates a localized message and specifies an appropriate logging level.

See also

mx.resources.ResourceBundle
mx.logging.LogEventLevel


Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  formattedMessage : String
[read-only] Retrieves the message text with all substitutions, appropriately formatted for display.
Message
  logLevel : int
Retrieves the logging level of the message.
Message
  messageId : String
[read-only] Retrieves the message identifier.
Message
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  rawMessage : String
[read-only] Retrieves the message text with all substitutions, without the formatting for display.
Message
Public Methods
 MethodDefined By
  
Message(id:String, params:Array, logLevel:int = 4)
Constructor.
Message
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
formattedMessageproperty
formattedMessage:String  [read-only]

Retrieves the message text with all substitutions, appropriately formatted for display.


Implementation
    public function get formattedMessage():String
logLevelproperty 
logLevel:int  [read-write]

Retrieves the logging level of the message. Valid options are values defined in the LogEventLevel class.


Implementation
    public function get logLevel():int
    public function set logLevel(value:int):void

See also

messageIdproperty 
messageId:String  [read-only]

Retrieves the message identifier.


Implementation
    public function get messageId():String
rawMessageproperty 
rawMessage:String  [read-only]

Retrieves the message text with all substitutions, without the formatting for display.


Implementation
    public function get rawMessage():String
Constructor Detail
Message()Constructor
public function Message(id:String, params:Array, logLevel:int = 4)

Constructor.

Parameters
id:String — Specifies the message identifier.
 
params:Array — Specifies the message parameters that will be substituted in the message.
 
logLevel:int (default = 4) — Specifies the logging level that can be one of the following values.
  • 1 = LogEventLevel.INFO
  • 2 = LogEventLevel.ERROR
  • 3 = LogEventLevel.WARN
  • 4 = LogEventLevel.DEBUG
  • 5 = LogEventLevel.FATAL

See also





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/lc/core/Message.html