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

com.github.microwww.ttp.opt.SlideOperation Maven / Gradle / Ivy

There is a newer version: 0.0.6-release
Show newest version
package com.github.microwww.ttp.opt;

import org.apache.commons.lang3.ArrayUtils;
import org.apache.poi.xslf.usermodel.XSLFSlide;

public class SlideOperation extends Operation {

    @Override
    public void parse(ParseContext context) {
        XSLFSlide form = context.getOrigins().get(Integer.valueOf(this.getNode()[0]));
        context.setTemplate(form);
    }

    @Override
    public void setNode(String[] node) {
        if (node.length > 0 && node[node.length - 1].equals("]")) {
            node = ArrayUtils.subarray(node, 0, node.length - 1);
        }
        super.setNode(node);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy