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

com.botronsoft.cmj.spitools.impl.transformation.configuration.Configuration Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.botronsoft.cmj.spitools.impl.transformation.configuration;

import java.util.Optional;
import java.util.Set;

import com.botronsoft.cmj.spitools.dsl.ArgumentType;

/**
 * The configuration which is extracted from an argument descriptor. See {@link ConfigurationFactory}.
 */
public class Configuration {

	private final String argumentName;
	private final ArgumentType argumentType;
	private final ReferenceType referenceType;
	private final Set literalValues;
	private final Optional separator;

	Configuration(String argumentName, ArgumentType argumentType, ReferenceType referenceType, Set literalValues) {
		this(argumentName, argumentType, referenceType, literalValues, Optional.empty());
	}

	Configuration(String argumentName, ArgumentType argumentType, ReferenceType referenceType, Set literalValues,
			Optional separator) {
		this.argumentName = argumentName;
		this.argumentType = argumentType;
		this.referenceType = referenceType;
		this.literalValues = literalValues;
		this.separator = separator;
	}

	public String getArgumentName() {
		return argumentName;
	}

	public ArgumentType getArgumentType() {
		return argumentType;
	}

	public ReferenceType getReferenceType() {
		return referenceType;
	}

	public Set getLiteralValues() {
		return literalValues;
	}

	public Optional getSeparator() {
		return separator;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy