io.sphere.sdk.attributes.BaseBuilder Maven / Gradle / Ivy
package io.sphere.sdk.attributes;
import io.sphere.sdk.models.Builder;
import io.sphere.sdk.models.LocalizedStrings;
/**
*
* @param the target AttributeDefinition type
*/
abstract class BaseBuilder> extends AttributeDefinitionBuilder implements Builder {
BaseBuilder(final String name, final LocalizedStrings label) {
super(name, label);
}
public B required(final boolean isRequired) {
this.isRequired = isRequired;
return getThis();
}
public B isRequired(final boolean isRequired) {
return required(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();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy