net.sf.sasl.language.placeholder.aop.resolver.typevalue
Class ToStringTypeValueSerializeStrategy
java.lang.Object
net.sf.sasl.language.placeholder.aop.resolver.typevalue.ToStringTypeValueSerializeStrategy
- All Implemented Interfaces:
- ITypeValueSerializeStrategy
public class ToStringTypeValueSerializeStrategy
- extends Object
- implements ITypeValueSerializeStrategy
Serializes the toSerializeObjects objects by calling the toString() method on
non null objects. For a null object the serialized output will be "null". The
names array will be ignored by the serializer. The argumentMap can contain
the key "seperator", which will be used to seperate following serialized
objects from each other. The default seperator is ", ".
- Since:
- 0.0.2 (sasl-common-aspect-library)
- Author:
- Philipp Förmer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToStringTypeValueSerializeStrategy
public ToStringTypeValueSerializeStrategy()
serialize
public String serialize(Object[] toSerializeObjects,
String[] names,
Map<String,Object> argumentMap)
- Description copied from interface:
ITypeValueSerializeStrategy
- Serializes the given toSerializeObjects and returns the serialized
output. The names array could be filled with parameter names or something
else and should have the same length as the toSerializeObjects array. The
argumentMap could be used to pass additional special values to the
serializer.
- Specified by:
serialize
in interface ITypeValueSerializeStrategy
- Parameters:
toSerializeObjects
- non null.names
- non null.argumentMap
- non null.
- Returns:
- non null serialized output.
- See Also:
ITypeValueSerializeStrategy.serialize(java.lang.Object[],
java.lang.String[], java.util.Map)
Copyright © 2010. All Rights Reserved.