public class ParameterSerializer extends Object
Constructor and Description |
---|
ParameterSerializer() |
Modifier and Type | Method and Description |
---|---|
protected com.smartfoxserver.v2.entities.data.SFSDataType |
getSFSArrayDataType(com.tvd12.ezyfox.core.structure.MethodCover method) |
com.smartfoxserver.v2.entities.data.ISFSObject |
object2params(com.tvd12.ezyfox.core.structure.ClassUnwrapper unwrapper,
Object object)
Serialize a java object to a SFSObject
|
com.smartfoxserver.v2.entities.data.ISFSObject |
object2params(com.tvd12.ezyfox.core.structure.ClassUnwrapper unwrapper,
Object object,
com.smartfoxserver.v2.entities.data.ISFSObject result)
Serialize a java object to a SFSObject
|
protected Object |
parseArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Object array)
Convert array of values to collection of values
|
protected com.smartfoxserver.v2.entities.data.ISFSArray |
parseArrayCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Collection collection)
Serialize collection of array to a SFSArray
|
protected com.smartfoxserver.v2.entities.data.ISFSArray |
parseArrayObjectCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Collection collection)
Serialize collection of java array object to a SFSArray
|
protected Object |
parseArrayOfTwoDimensionsArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Object array) |
protected Object |
parseCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Collection collection)
Parse collection of values and get the value mapped to smartfox value
|
protected void |
parseMethod(Object value,
com.tvd12.ezyfox.core.structure.GetterMethodCover method,
com.smartfoxserver.v2.entities.data.ISFSObject sfsObject)
Serialize a java object to a SFSObject
|
protected com.smartfoxserver.v2.entities.data.ISFSObject |
parseMethods(com.tvd12.ezyfox.core.structure.ClassUnwrapper unwrapper,
Object object)
Invoke getter method and add returned value to SFSObject
|
protected com.smartfoxserver.v2.entities.data.ISFSObject |
parseObject(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Object object)
Serialize a java object to a SFSObject
|
protected com.smartfoxserver.v2.entities.data.ISFSArray |
parseObjectArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Object[] array)
Serialize array of object to a SFSArray
|
protected com.smartfoxserver.v2.entities.data.ISFSArray |
parseObjectCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Collection collection)
Serialize collection of objects to a SFSArray
|
protected Object |
parseTwoDimensionsArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method,
Object array)
Serialize two-dimensions array to ISFSArray
|
public com.smartfoxserver.v2.entities.data.ISFSObject object2params(com.tvd12.ezyfox.core.structure.ClassUnwrapper unwrapper, Object object)
unwrapper
- structure of java classobject
- the java objectpublic com.smartfoxserver.v2.entities.data.ISFSObject object2params(com.tvd12.ezyfox.core.structure.ClassUnwrapper unwrapper, Object object, com.smartfoxserver.v2.entities.data.ISFSObject result)
unwrapper
- structure of java classobject
- java objectresult
- the SFSObjectprotected com.smartfoxserver.v2.entities.data.ISFSObject parseMethods(com.tvd12.ezyfox.core.structure.ClassUnwrapper unwrapper, Object object)
unwrapper
- structure of java classobject
- the java objectprotected void parseMethod(Object value, com.tvd12.ezyfox.core.structure.GetterMethodCover method, com.smartfoxserver.v2.entities.data.ISFSObject sfsObject)
value
- value to parsemethod
- structure of getter methodsfsObject
- the SFSObjectprotected Object parseTwoDimensionsArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Object array)
method
- method's structurearray
- the two-dimensions arrayprotected Object parseArrayOfTwoDimensionsArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Object array)
protected Object parseArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Object array)
method
- structure of getter methodarray
- the array of valuesprotected Object parseCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Collection collection)
method
- structure of getter methodcollection
- collection of valueprotected com.smartfoxserver.v2.entities.data.ISFSObject parseObject(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Object object)
method
- structure of getter methodobject
- object to serializeprotected com.smartfoxserver.v2.entities.data.ISFSArray parseObjectArray(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Object[] array)
method
- structure of getter methodarray
- array of objectsprotected com.smartfoxserver.v2.entities.data.ISFSArray parseObjectCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Collection collection)
method
- structure of getter methodcollection
- collection of objectsprotected com.smartfoxserver.v2.entities.data.ISFSArray parseArrayObjectCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Collection collection)
method
- structure of getter methodcollection
- collection of java objectsprotected com.smartfoxserver.v2.entities.data.ISFSArray parseArrayCollection(com.tvd12.ezyfox.core.structure.GetterMethodCover method, Collection collection)
method
- structure of getter methodcollection
- collection of objectsprotected com.smartfoxserver.v2.entities.data.SFSDataType getSFSArrayDataType(com.tvd12.ezyfox.core.structure.MethodCover method)
Copyright © 2012–2017 Young Monkeys. All rights reserved.