Class ReflectionOperationDescriptorConverter
- java.lang.Object
-
- net.ssehub.easy.instantiation.serializer.xml.converter.AbstractDescriptorConverter
-
- net.ssehub.easy.instantiation.serializer.xml.converter.ReflectionOperationDescriptorConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
public class ReflectionOperationDescriptorConverter extends AbstractDescriptorConverter implements com.thoughtworks.xstream.converters.Converter
Converter for theReflectionOperationDescriptor.- Author:
- Sass
-
-
Field Summary
-
Fields inherited from class net.ssehub.easy.instantiation.serializer.xml.converter.AbstractDescriptorConverter
logger
-
-
Constructor Summary
Constructors Constructor Description ReflectionOperationDescriptorConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanConvert(java.lang.Class cls)Determines whether this converter instance handles the given class.voidmarshal(java.lang.Object object, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)Marshals a givenobjectto the givenwriterin the specified marshalingcontext.-
Methods inherited from class net.ssehub.easy.instantiation.serializer.xml.converter.AbstractDescriptorConverter
addAttributes, setTypeRegistry, unmarshal
-
-
-
-
Method Detail
-
canConvert
public boolean canConvert(java.lang.Class cls)
Determines whether this converter instance handles the given class.- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher- Parameters:
cls- the class to be tested- Returns:
trueif this instance handlesclass(this is only the case if it is a ReflectionOperationDescriptor class),falseelse
-
marshal
public void marshal(java.lang.Object object, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)Marshals a givenobjectto the givenwriterin the specified marshalingcontext. This method translates a ReflectionOperationDescriptor type singleton to a name.- Specified by:
marshalin interfacecom.thoughtworks.xstream.converters.Converter- Parameters:
object- the object to be marshaledwriter- the output stream writercontext- the marshaling context
-
-