Class ToStringTypeValueSerializeStrategy

  extended by net.sf.sasl.language.placeholder.aop.resolver.typevalue.ToStringTypeValueSerializeStrategy
All Implemented Interfaces:

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 ", ".

0.0.2 (sasl-common-aspect-library)
Philipp Förmer

Constructor Summary
Method Summary
 String serialize(Object[] toSerializeObjects, String[] names, Map<String,Object> argumentMap)
          Serializes the given toSerializeObjects and returns the serialized output.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ToStringTypeValueSerializeStrategy()
Method Detail


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
toSerializeObjects - non null.
names - non null.
argumentMap - non null.
non null serialized output.
See Also:
ITypeValueSerializeStrategy.serialize(java.lang.Object[], java.lang.String[], java.util.Map)

Copyright © 2010. All Rights Reserved.