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

com.neotys.neoload.model.v3.validation.naming.DefaultPropertyNamingStrategy Maven / Gradle / Ivy

package com.neotys.neoload.model.v3.validation.naming;

import javax.validation.Path.Node;

public final class DefaultPropertyNamingStrategy implements PropertyNamingStrategy {
	private final String friendlyName;
		
	public DefaultPropertyNamingStrategy(String friendlyName) {
		super();
		
		this.friendlyName = friendlyName;
	}

	@Override
	public String apply(final Node node) {
		return node.toString().replace(node.getName(), friendlyName);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy