com.softicar.platform.common.core.properties.AbstractPropertyFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.properties;
abstract class AbstractPropertyFactory {
private final String namePrefix;
public AbstractPropertyFactory(String namePrefix) {
this.namePrefix = namePrefix;
}
protected PropertyName createName(String propertyName) {
if (namePrefix.isEmpty()) {
return new PropertyName(propertyName);
} else {
return new PropertyName(namePrefix + "." + propertyName);
}
}
}