Package jadex.binary
Class SimpleDateFormatCodec
java.lang.Object
jadex.binary.AbstractCodec
jadex.binary.BeanCodec
jadex.binary.SimpleDateFormatCodec
- All Implemented Interfaces:
IDecoderHandler
,jadex.common.transformation.traverser.ITraverseProcessor
Codec for encoding and decoding java.text.SimpleDateFormat objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jadex.common.transformation.traverser.IBeanIntrospector
Bean introspector for inspecting beans.Fields inherited from class jadex.binary.BeanCodec
INTROSPECTOR_CACHE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(Class<?> clazz, IDecodingContext context) Add pattern property with applyPattern method.encode
(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, IEncodingContext ec) Add pattern property from toPattern method.boolean
isApplicable
(Class<?> clazz) Tests if the decoder can decode the class.Methods inherited from class jadex.binary.BeanCodec
createObject, decodeSubObjects, isApplicable, readBeanProperties, writeBeanProperties
Methods inherited from class jadex.binary.AbstractCodec
canReference, isApplicable, isFixedFrame, process, recordKnownDecodedObject
-
Field Details
-
intro
protected jadex.common.transformation.traverser.IBeanIntrospector introBean introspector for inspecting beans.
-
-
Constructor Details
-
SimpleDateFormatCodec
public SimpleDateFormatCodec()
-
-
Method Details
-
isApplicable
Tests if the decoder can decode the class.- Specified by:
isApplicable
in interfaceIDecoderHandler
- Overrides:
isApplicable
in classBeanCodec
- Parameters:
clazz
- The class.- Returns:
- True, if the decoder can decode this class.
-
decode
Add pattern property with applyPattern method.- Specified by:
decode
in interfaceIDecoderHandler
- Overrides:
decode
in classAbstractCodec
- Parameters:
clazz
- The class of the object.context
- The decoding context.- Returns:
- The decoded object.
-
encode
public Object encode(Object object, Class<?> clazz, List<jadex.common.transformation.traverser.ITraverseProcessor> preprocessors, List<jadex.common.transformation.traverser.ITraverseProcessor> processors, jadex.common.transformation.IStringConverter converter, jadex.common.transformation.traverser.Traverser.MODE mode, jadex.common.transformation.traverser.Traverser traverser, ClassLoader targetcl, IEncodingContext ec) Add pattern property from toPattern method.
-