org.daisy.common.xproc.XProcInput Maven / Gradle / Ivy
package org.daisy.common.xproc;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
import com.google.common.base.Predicates;
import com.google.common.base.Supplier;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
/**
* The Class XProcInput maps ports and options with a value for the pipeline execution, this object is immutable.
*/
public final class XProcInput {
/**
* The Class Builder builds XProcInput objects to make them immutable.
*/
public static final class Builder {
/** The info. */
private final XProcPipelineInfo info;
/** The inputs. */
private final HashMap>> inputs = Maps
.newHashMap();
/** The parameters. */
private final Map> parameters = Maps
.newHashMap();
/** The options. */
private final Map options = Maps.newHashMap();
/**
* Instantiates a new builder.
*/
public Builder() {
info = null;
}
/**
* Instantiates a new builder.
*
* @param info the info
*/
public Builder(XProcPipelineInfo info) {
this.info = info;
}
/**
* With input.
*
* @param port the port
* @param source the source
* @return the builder
*/
public Builder withInput(String port, Supplier
© 2015 - 2025 Weber Informatics LLC | Privacy Policy