flex.messaging.io.amf
Class TraitsInfo

java.lang.Object
  extended by flex.messaging.io.amf.TraitsInfo

public class TraitsInfo
extends Object

AVM+ Serialization optimizes object serialization by serializing the traits of a type once, and then sending only the values of each instance of the type as it occurs in the stream.


Constructor Summary
TraitsInfo(String className)
           
TraitsInfo(String className, boolean dynamic, boolean externalizable, int initialCount)
           
TraitsInfo(String className, boolean dynamic, boolean externalizable, List properties)
           
TraitsInfo(String className, int initialCount)
           
 
Method Summary
 void addAllProperties(Collection props)
           
 void addProperty(String name)
           
 boolean equals(Object obj)
           
 String getClassName()
           
 List getProperties()
           
 String getProperty(int i)
           
 int hashCode()
          Instances of types with the same classname and number of properties may return the same hash code, however, an equality test will fully test whether they match exactly on individual property names.
 boolean isDynamic()
           
 boolean isExternalizable()
           
 int length()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraitsInfo

public TraitsInfo(String className)

TraitsInfo

public TraitsInfo(String className,
                  int initialCount)

TraitsInfo

public TraitsInfo(String className,
                  boolean dynamic,
                  boolean externalizable,
                  int initialCount)

TraitsInfo

public TraitsInfo(String className,
                  boolean dynamic,
                  boolean externalizable,
                  List properties)
Method Detail

isDynamic

public boolean isDynamic()

isExternalizable

public boolean isExternalizable()

length

public int length()

getClassName

public String getClassName()

addProperty

public void addProperty(String name)

addAllProperties

public void addAllProperties(Collection props)

getProperty

public String getProperty(int i)

getProperties

public List getProperties()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Instances of types with the same classname and number of properties may return the same hash code, however, an equality test will fully test whether they match exactly on individual property names.

Overrides:
hashCode in class Object


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

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

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/amf/TraitsInfo.html