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

io.sphere.sdk.attributes.DateAttributeDefinitionBuilder Maven / Gradle / Ivy

There is a newer version: 1.0.0-M7
Show newest version
package io.sphere.sdk.attributes;

import io.sphere.sdk.models.LocalizedString;

public class DateAttributeDefinitionBuilder extends BaseBuilder {
    DateAttributeDefinitionBuilder(final String name, final LocalizedString label) {
        super(name, label);
    }

    @Override
    protected DateAttributeDefinitionBuilder getThis() {
        return this;
    }

    @Override
    public DateAttributeDefinition build() {
        return new DateAttributeDefinition(new DateType(), getName(), getLabel(), isRequired(), getAttributeConstraint(), isSearchable());
    }

    public static DateAttributeDefinitionBuilder of(final String name, final LocalizedString label) {
        return new DateAttributeDefinitionBuilder(name, label);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy