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

org.metricssampler.extensions.exec.ArgumentXBean Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package org.metricssampler.extensions.exec;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;

import static org.metricssampler.config.loader.xbeans.ValidationUtils.notEmpty;

@XStreamAlias("argument")
@XStreamConverter(value=ToAttributedValueConverter.class, strings={"value"})
public class ArgumentXBean {
	private String value;

	protected void validate() {
		notEmpty(this, "value", getValue());
	}

	public String getValue() {
		return value;
	}

	public void setValue(final String value) {
		this.value = value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy