Class SerializedParametersOrReturn
- java.lang.Object
-
- es.bsc.dataclay.serialization.lib.SerializedParametersOrReturn
-
public final class SerializedParametersOrReturn extends Object
Serialized parameters or returns.
-
-
Constructor Summary
Constructors Constructor Description SerializedParametersOrReturn()
Empty constructor for YAML.SerializedParametersOrReturn(int theNumParams, Map<Integer,ImmutableParamOrReturn> theimmObjs, Map<Integer,LanguageParamOrReturn> thelangObjs, Map<Integer,ObjectWithDataParamOrReturn> thevolatileObjs, Map<Integer,PersistentParamOrReturn> thepersistentRefs)
ConstructorSerializedParametersOrReturn(List<ObjectWithDataParamOrReturn> thevolatileObjs)
Constructor for volatiles
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Integer,ImmutableParamOrReturn>
getImmObjs()
Map<Integer,LanguageParamOrReturn>
getLangObjs()
int
getNumParams()
Map<Integer,PersistentParamOrReturn>
getPersistentRefs()
Map<Integer,ObjectWithDataParamOrReturn>
getVolatileObjs()
int
hashCode()
boolean
needWrappers()
Indicates if serialized parameters need wrappers for language/immutable objects.void
removeReferencesForYaml()
Remove DataClayObjects for yaml serializationvoid
setImmObjs(Map<Integer,ImmutableParamOrReturn> newimmObjs)
Set immObjsvoid
setLangObjs(Map<Integer,LanguageParamOrReturn> newlangObjs)
Set langObjsvoid
setNumParams(int newnumParams)
Set numParamsvoid
setPersistentRefs(Map<Integer,PersistentParamOrReturn> newpersistentRefs)
Set persistentRefsvoid
setVolatileObjs(Map<Integer,ObjectWithDataParamOrReturn> newvolatileObjs)
Set volatileObjsString
toString()
-
-
-
Constructor Detail
-
SerializedParametersOrReturn
public SerializedParametersOrReturn()
Empty constructor for YAML.
-
SerializedParametersOrReturn
public SerializedParametersOrReturn(int theNumParams, Map<Integer,ImmutableParamOrReturn> theimmObjs, Map<Integer,LanguageParamOrReturn> thelangObjs, Map<Integer,ObjectWithDataParamOrReturn> thevolatileObjs, Map<Integer,PersistentParamOrReturn> thepersistentRefs)
Constructor- Parameters:
theNumParams
- Number of declared parameters of the method.theimmObjs
- Immutable parameters or returnthelangObjs
- Language parameters or reutrnthevolatileObjs
- Volatile parameters or returnthepersistentRefs
- Persistent params or return Mandatory for: Returns to client and Volatile parameters (execute or mkPersistent)
-
SerializedParametersOrReturn
public SerializedParametersOrReturn(List<ObjectWithDataParamOrReturn> thevolatileObjs)
Constructor for volatiles- Parameters:
thevolatileObjs
- Volatile parameters or return
-
-
Method Detail
-
getLangObjs
public Map<Integer,LanguageParamOrReturn> getLangObjs()
- Returns:
- the langObjs
-
getVolatileObjs
public Map<Integer,ObjectWithDataParamOrReturn> getVolatileObjs()
- Returns:
- the volatileObjs
-
getPersistentRefs
public Map<Integer,PersistentParamOrReturn> getPersistentRefs()
- Returns:
- the persistentRefs
-
getNumParams
public int getNumParams()
- Returns:
- the numParams
-
getImmObjs
public Map<Integer,ImmutableParamOrReturn> getImmObjs()
- Returns:
- the immObjs
-
removeReferencesForYaml
public void removeReferencesForYaml()
Remove DataClayObjects for yaml serialization
-
setNumParams
public void setNumParams(int newnumParams)
Set numParams- Parameters:
newnumParams
- the numParams to set
-
setImmObjs
public void setImmObjs(Map<Integer,ImmutableParamOrReturn> newimmObjs)
Set immObjs- Parameters:
newimmObjs
- the immObjs to set
-
setLangObjs
public void setLangObjs(Map<Integer,LanguageParamOrReturn> newlangObjs)
Set langObjs- Parameters:
newlangObjs
- the langObjs to set
-
setVolatileObjs
public void setVolatileObjs(Map<Integer,ObjectWithDataParamOrReturn> newvolatileObjs)
Set volatileObjs- Parameters:
newvolatileObjs
- the volatileObjs to set
-
setPersistentRefs
public void setPersistentRefs(Map<Integer,PersistentParamOrReturn> newpersistentRefs)
Set persistentRefs- Parameters:
newpersistentRefs
- the persistentRefs to set
-
needWrappers
public boolean needWrappers()
Indicates if serialized parameters need wrappers for language/immutable objects.- Returns:
- TRUE if serialized parameters need wrappers for language/immutable objects.
-
-