de.retest.ui.descriptors.ParameterizedAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of retest-model Show documentation
Show all versions of retest-model Show documentation
The domain model for both retest and recheck.
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();
}