<commit_before>package org.pikater.shared.experiment.universalformat;

public class UniversalConnector
{
    private String inputDataType;
	private String outputDataType;
	private UniversalElement fromElement;
	
	public String getInputDataType()
	{
		return inputDataType;
	}
	public void setInputDataType(String inputDataType)
	{
		this.inputDataType = inputDataType;
	}
	
	public String getOutputDataType()
	{
		return outputDataType;
	}
	public void setOutputDataType(String outputDataType)
	{
		this.outputDataType = outputDataType;
	}
	
	public UniversalElement getFromElement()
	{
		return fromElement;
	}
	public void setFromElement(UniversalElement fromElement)
	{
		this.fromElement = fromElement;
	}
}<commit_msg>Adding GUI related methods to universal format<commit_after>package org.pikater.shared.experiment.universalformat;

public class UniversalConnector
{
    private String inputDataType;
	private String outputDataType;
	private UniversalElement fromElement;
	
	public String getInputDataType()
	{
		return inputDataType;
	}
	public void setInputDataType(String inputDataType)
	{
		this.inputDataType = inputDataType;
	}
	
	public String getOutputDataType()
	{
		return outputDataType;
	}
	public void setOutputDataType(String outputDataType)
	{
		this.outputDataType = outputDataType;
	}
	
	public UniversalElement getFromElement()
	{
		return fromElement;
	}
	public void setFromElement(UniversalElement fromElement)
	{
		this.fromElement = fromElement;
	}
	
	public boolean isFullySpecified()
	{
		return (inputDataType != null) && (outputDataType != null); 
	}
	
	public void validate()
	{
		if(fromElement == null)
		{
			throw new IllegalStateException("From element is not defined.");
		}
		else if(((inputDataType != null) && (outputDataType == null)) ||
				((inputDataType == null) && (outputDataType != null)))
		{
			throw new IllegalStateException("One of the data types is not defined.");
		}
	}
}
{'fraction_non_alphanumeric': 0.08549222797927461, 'fraction_numerical': 0.0, 'mean_word_length': 4.887195121951219, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6616700', 'n_tokens_mistral': 587, 'n_tokens_neox': 572, 'n_words': 139}