io.sphere.sdk.attributes.BaseBuilder Maven / Gradle / Ivy
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.Builder;
import io.sphere.sdk.models.LocalizedString;
/**
*
* @param the target AttributeDefinition type
*/
abstract class BaseBuilder> extends AttributeDefinitionBuilder implements Builder {
BaseBuilder(final String name, final LocalizedString label) {
super(name, label);
}
public B required(final boolean isRequired) {
this.isRequired = isRequired;
return getThis();
}
public B isRequired(final boolean isRequired) {
return isRequired(isRequired);
}
public B searchable(final boolean isSearchable) {
this.isSearchable = isSearchable;
return getThis();
}
public B isSearchable(final boolean isSearchable) {
return searchable(isSearchable);
}
protected abstract B getThis();
}