Packagevegas.core
Classpublic class CoreObject
ImplementsIHashable, ILogable, Serializable
SubclassesAbstractBag, AbstractCollection, AbstractController, AbstractGroup, AbstractTypeable, AbstractVisitable, ArrayIterator, ArrayMap, BagFormat, BagIterator, BooleanComparator, Char, CircularQueue, CollectionFormat, Command, ComparableComparator, Config, CoreEventDispatcher, Corner, DateComparator, Delegate, Dimension, EasingController, EdgeMetrics, FillBitmapStyle, FillGradientStyle, FillStyle, Formatter, FrontController, GenericComparator, Lang, Line, LineGradientStyle, LineStyle, LinkedList, LinkedListEntry, LogEventLevel, MapFormat, MapIterator, Matrix, Matrix4, MultiHashMap, MultiMapFormat, NetServerGateway, NetServerInfo, NetServerStatus, NetStreamStatus, NullComparator, NumberComparator, ObjectConfig, ObjectDefinition, ObjectIterator, ObjectPool, Observable, PageByPageIterator, Plane, ProtectedIterator, QueueFormat, Ray, RemotingAuthentification, RemotingFormat, ReverseComparator, SimpleValueObject, StringComparator, StringIterator, TimelineIterator, TimelineScript, TimeoutPolicy, TweenEntry, TypeAliases, TypeEvaluator, UVCoordinate, Vector2

CoreObject offers a default implementation of the IFormattable, IHashable and ISerializable interfaces.

Example :

  import vegas.core.CoreObject ;
   
  var core:CoreObject = new CoreObject() ;
  trace("core     : " + core) ;
  trace("hashcode : " + core.hashCode()) ;
  trace("toSource : " + core.toSource()) ;
  



Public Methods
 MethodDefined by
  
Creates a new CoreObject instance.
CoreObject
  
Returns the internal ILogger reference of this ILogable object.
CoreObject
  
hashCode():uint
Returns a hashcode value for the object.
CoreObject
  
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
  
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreObject
  
toString():String
Returns the string representation of this instance.
CoreObject
Constructor detail
CoreObject()constructor
public function CoreObject()

Creates a new CoreObject instance.

Method detail
getLogger()method
public function getLogger():ILogger

Returns the internal ILogger reference of this ILogable object.

Returns
ILogger — the internal ILogger reference of this ILogable object.
hashCode()method 
public function hashCode():uint

Returns a hashcode value for the object.

Returns
uint — a hashcode value for the object.
setLogger()method 
public function setLogger(log:ILogger = null):void

Sets the internal ILogger reference of this ILogable object.

Parameters
log:ILogger (default = null)
toSource()method 
public function toSource(indent:int = 0):String

Returns the string representation the source code of the object.

Parameters
indent:int (default = 0)

Returns
String — the string representation the source code of the object.
toString()method 
public function toString():String

Returns the string representation of this instance.

Returns
String — the string representation of this instance.