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

org.etlunit.feature.RuntimeOption Maven / Gradle / Ivy

package org.etlunit.feature;

public class RuntimeOption
{
	private String name;

	private Boolean enabled;
	private String stringValue;
	private Integer integerValue;

	public void setEnabled(Boolean enabled)
	{
		this.enabled = enabled;
	}

	public void setStringValue(String stringValue)
	{
		this.stringValue = stringValue;
	}

	public void setIntegerValue(Integer integerValue)
	{
		this.integerValue = integerValue;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public boolean isEnabled()
	{
		if (enabled == null)
		{
			throw new UnsupportedOperationException();
		}

		return enabled.booleanValue();
	}

	public int getIntegerValue()
	{
		if (integerValue == null)
		{
			throw new UnsupportedOperationException();
		}

		return integerValue.intValue();
	}

	public String getStringValue()
	{
		if (stringValue == null)
		{
			throw new UnsupportedOperationException();
		}

		return stringValue;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy