CompositeConvertor

An implementation of convertor that is using a mapper to map from component to component.

Members

Functions

add
typeof(this) add(Convertor convertor)

Add a convertor to existing list

convert
Object convert(Object from, TypeInfo to, RCIAllocator allocator)

Convert from component to component.

convertors
typeof(this) convertors(Convertor[] convertors)

Set used convertors

convertsFrom
bool convertsFrom(TypeInfo from)

Check whether convertor is able to convert from.

convertsFrom
bool convertsFrom(Object from)

Check whether convertor is able to convert from.

convertsTo
bool convertsTo(TypeInfo to)

Check whether convertor is able to convert to.

convertsTo
bool convertsTo(Object to)

Check whether convertor is able to convert to.

destruct
void destruct(Object converted, RCIAllocator allocator)

Destroy component created using this convertor.

remove
typeof(this) remove(Convertor convertor)

Remove a convertor from existing list

Properties

from
TypeInfo from [@property getter]

Get the type info of component that convertor can convert from.

mapper
Mapper!(To, From) mapper [@property setter]

Set mapper

mapper
inout(Mapper!(To, From)) mapper [@property getter]

Get mapper

to
TypeInfo to [@property getter]

Get the type info of component that convertor is able to convert to.

Inherited Members

From CombinedConvertor

convertors
typeof(this) convertors(Convertor[] convertors)
T convertors(Convertor convertors)

Set used convertors

add
typeof(this) add(Convertor convertor)

Add a convertor to existing list

remove
typeof(this) remove(Convertor convertor)

Remove a convertor from existing list

Meta