Examples of FeatureWrapper


Examples of org.geoserver.template.FeatureWrapper


public class FeatureDescriptionTemplateTest extends TestCase {
    public void testTemplate() throws Exception {
        Configuration cfg = new Configuration();
        cfg.setObjectWrapper(new FeatureWrapper());
        cfg.setClassForTemplateLoading(FeatureTemplate.class, "");

        Template template = cfg.getTemplate("description.ftl");
        assertNotNull(template);
View Full Code Here

Examples of org.geoserver.template.FeatureWrapper

    public FilterFunction_freemarker() {
        super("freemarker");
        // initialize the template engine, this is static to maintain a cache
        // over instantiations of kml writer
        templateConfig = new Configuration();
        templateConfig.setObjectWrapper(new FeatureWrapper());
        templateLoader = new StringTemplateLoader();
        templateConfig.setTemplateLoader(templateLoader);
    }
View Full Code Here

Examples of org.geoserver.template.FeatureWrapper

public class FeatureDescriptionTemplateTest {

    @Test
    public void testTemplate() throws Exception {
        Configuration cfg = new Configuration();
        cfg.setObjectWrapper(new FeatureWrapper());
        cfg.setClassForTemplateLoading(FeatureTemplate.class, "");

        Template template = cfg.getTemplate("description.ftl");
        assertNotNull(template);
View Full Code Here

Examples of org.geoserver.template.FeatureWrapper


public class FeatureDescriptionTemplateTest extends TestCase {
    public void testTemplate() throws Exception {
        Configuration cfg = new Configuration();
        cfg.setObjectWrapper(new FeatureWrapper());
        cfg.setClassForTemplateLoading(FeatureTemplate.class, "");

        Template template = cfg.getTemplate("description.ftl");
        assertNotNull(template);
View Full Code Here

Examples of org.wso2.carbon.component.mgt.ui.FeatureWrapper

    }

    public static FeatureWrapper[] processFeatureTree(Feature[] features, int height) {
        FeatureWrapper[] featureWrappers = new FeatureWrapper[features.length];
        for (int i = 0; i < features.length; i++) {
            featureWrappers[i] = new FeatureWrapper();
            featureWrappers[i].setWrappedFeature(features[i]);
            featureWrappers[i].setHeight(height);
            featureWrappers[i].setHiddenRow(true);
            if (features[i].getRequiredFeatures() != null && features[i].getRequiredFeatures().length > 0) {
                featureWrappers[i].setHasChildren(true);
View Full Code Here

Examples of org.wso2.carbon.component.mgt.ui.FeatureWrapper

        Set<FeatureWrapper> featureWrapperSet = new HashSet<FeatureWrapper>();
        for (FeatureWrapper fw : featureWrappers) {
            Stack<FeatureWrapper> featureWrapperStack = new Stack<FeatureWrapper>();
            featureWrapperStack.add(fw);
            while (!featureWrapperStack.isEmpty()) {
                FeatureWrapper popedFeatureWrapper = featureWrapperStack.pop();
                featureWrapperSet.add(popedFeatureWrapper);
                FeatureWrapper[] requireFeatures = popedFeatureWrapper.getRequiredFeatures();
                if (requireFeatures != null && requireFeatures.length > 0) {
                    for (FeatureWrapper rfw : requireFeatures) {
                        featureWrapperStack.push(rfw);
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.