All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.contextfw.web.application.internal.component.PropertyBuilder Maven / Gradle / Ivy

package net.contextfw.web.application.internal.component;

import net.contextfw.web.application.component.DOMBuilder;

abstract class PropertyBuilder extends Builder {

    private PropertyAccess propertyAccess;
    
    protected PropertyBuilder(PropertyAccess propertyAccess, String methodName) {
        super(methodName);
        this.propertyAccess = propertyAccess;
    }
    
    final void build(DOMBuilder b, Object buildable) {
        buildValue(b, propertyAccess.getValue(buildable));
    }
    
    abstract void buildValue(DOMBuilder b, Object value);
}