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

de.retest.ui.descriptors.ParameterizedAttribute Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package de.retest.ui.descriptors;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import org.apache.commons.lang3.StringUtils;

@XmlRootElement
public abstract class ParameterizedAttribute extends Attribute {

	private static final long serialVersionUID = 1L;

	@XmlAttribute
	private final String variableName;

	// Used by JaxB
	protected ParameterizedAttribute() {
		variableName = null;
	}

	public ParameterizedAttribute( final String key, final String variableName ) {
		super( key );
		this.variableName = StringUtils.isNotEmpty( variableName ) ? variableName : null;
	}

	public String getVariableName() {
		return variableName;
	}

	public abstract ParameterizedAttribute applyVariableChange( final String variableName );

	public abstract ParameterType getType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy