package org.itsnat.droid.impl.xmlinflater.shared.attr;

import org.itsnat.droid.impl.dom.DOMAttr;
import org.itsnat.droid.impl.xmlinflater.AttrContext;
import org.itsnat.droid.impl.xmlinflater.XMLInflaterContext;
import org.itsnat.droid.impl.xmlinflater.shared.classtree.ClassDesc;

/**
 * Created by jmarranz on 30/04/14.
 */
public class AttrDescReflecMethodDimensionFloat<TclassDesc extends ClassDesc,TattrTarget,TattrContext extends AttrContext>
        extends AttrDescReflecMethodDimensionFloatBase<TclassDesc,TattrTarget,TattrContext>
{
    public AttrDescReflecMethodDimensionFloat(TclassDesc parent, String name, String methodName, Float defaultValue)
    {
        super(parent, name, methodName, defaultValue);
    }

    public AttrDescReflecMethodDimensionFloat(TclassDesc parent, String name, Float defaultValue)
    {
        super(parent,name,defaultValue);
    }

    @Override
    public float getDimensionFloatAbstract(DOMAttr attr, XMLInflaterContext xmlInflaterContext)
    {
        return getDimensionFloat(attr.getResourceDesc(), xmlInflaterContext);
    }
}
