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

io.sphere.sdk.expansion.MetaModelExpansionDsl Maven / Gradle / Ivy

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

import java.util.function.Function;

public interface MetaModelExpansionDsl extends ReferenceExpansionDsl {
    /**
     * Creates a new object with the properties of the old object but adds a new expansion path to it by using meta models.
     *
     * 

An example in the product projection context:

* {@include.example io.sphere.sdk.products.expansion.ProductProjectionExpansionModelTest#expandCategoriesDemo()} * * @param m function to use the meta model for expansions to create an expansion path * @return new object */ C plusExpansionPaths(final Function> m); /** * Creates a new object with the properties of the old object but replaces all expansion paths with a single {@code expansionPath} by using meta models. * *

An example in the product projection context:

* {@include.example io.sphere.sdk.products.expansion.ProductProjectionExpansionModelTest#withExpansionPathDslDemo()} * * @param m function to use the meta model for expansions to create an expansion path * @return new object */ C withExpansionPaths(final Function> m); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy