org.atemsource.atem.utility.binding.Binder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atem-utility Show documentation
Show all versions of atem-utility Show documentation
Atem utilities for cloning, comparing and transforming
The newest version!
package org.atemsource.atem.utility.binding;
import javax.annotation.PostConstruct;
import org.atemsource.atem.api.attribute.relation.SingleAttribute;
import org.atemsource.atem.api.type.EntityType;
import org.atemsource.atem.impl.meta.DerivedObject;
import org.atemsource.atem.utility.transform.api.TypeNameConverter;
import org.atemsource.atem.utility.transform.api.meta.DerivedType;
import org.atemsource.atem.utility.transform.impl.EntityTypeTransformation;
/**
* This Binder binds each source type to exactly one target type.
*/
public class Binder extends AbstractBinder implements BindingListener
{
private TypeNameConverter typeNameConverter;
public Binder()
{
super();
}
@Override
public void finished(EntityTypeTransformation, ?> transformation)
{
// we get the actual transformations from the types meta data.
}
public EntityTypeTransformation getTransformation(Class sourceClass)
{
String targetTypeCode = typeNameConverter.convert(entityTypeRepository.getEntityType(sourceClass));
EntityType