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

io.sphere.sdk.models.MetaAttributes Maven / Gradle / Ivy

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

import javax.annotation.Nullable;
import java.util.Locale;

public interface MetaAttributes {
    @Nullable
    LocalizedString getMetaTitle();

    @Nullable
    LocalizedString getMetaDescription();

    @Nullable
    LocalizedString getMetaKeywords();

    static MetaAttributes metaAttributesOf(@Nullable final LocalizedString metaTitle, @Nullable final LocalizedString metaDescription, @Nullable final LocalizedString metaKeywords) {
        return new MetaAttributesDslImpl(metaTitle, metaDescription, metaKeywords);
    }

    static MetaAttributes metaAttributesOf(final Locale locale, final String metaTitle, final String metaDescription, final String metaKeywords) {
        return MetaAttributesDsl.of()
                .withTitle(LocalizedString.of(locale, metaTitle))
                .withDescription(LocalizedString.of(locale, metaDescription))
                .withKeywords(LocalizedString.of(locale, metaKeywords));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy