|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
flex.messaging.io.amf.ASObject
public class ASObject
This class represents a Flash Actionscript Object (typed or untyped)
Making a class rather than just deserializing to a HashMap was chosen for the following reasons:
1) "types" are not going to be native to Hashmap, table, etc.
2) it helps in making the deserializer/serializer reflexive.
| Constructor Summary | |
|---|---|
ASObject()
Create an Actionscript object. |
|
ASObject(String name)
Create a named Actionscript object. |
|
| Method Summary | |
|---|---|
String |
getType()
get the named type, if any. |
int |
hashCode()
Return the hashcode of this object. |
void |
setType(String type)
Sets the named type. |
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals |
| Constructor Detail |
|---|
public ASObject()
public ASObject(String name)
name - the type of the object| Method Detail |
|---|
public String getType()
public void setType(String type)
type - the type of the object.public int hashCode()
hashCode in interface MaphashCode in class AbstractMappublic String toString()
This implementation creates an empty string buffer, appends a left brace, and iterates over the map's entrySet view, appending the string representation of each map.entry in turn. After appending each entry except the last, the string ", " is appended. Finally a right brace is appended. A string is obtained from the stringbuffer, and returned.
If the value is found to be recursive, "..." (three periods) are printed to indicate the loop.
toString in class AbstractMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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/ASObject.html