Class RegionModelBuilder
- java.lang.Object
-
- de.hybris.platform.warehousing.util.builder.RegionModelBuilder
-
public class RegionModelBuilder extends java.lang.ObjectBuilder class to build aRegionModelfor testing purposes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegionModelBuilderaModel()Builds aRegionModelBuilder.RegionModelbuild()Builds a newRegionModel.RegionModelBuilderwithCountry(CountryModel country)Adds aCountryModelto theRegionModel.RegionModelBuilderwithIsocode(java.lang.String isocode)Adds an isocode to theRegionModel.RegionModelBuilderwithIsocodeShort(java.lang.String isocodeShort)Adds a the short isocode to theRegionModel.RegionModelBuilderwithName(java.lang.String name)Adds a name to theRegionModel.
-
-
-
Method Detail
-
aModel
public static RegionModelBuilder aModel()
Builds aRegionModelBuilder.- Returns:
- the newly created
RegionModelBuilder
-
build
public RegionModel build()
Builds a newRegionModel.- Returns:
- the
RegionModel
-
withCountry
public RegionModelBuilder withCountry(CountryModel country)
Adds aCountryModelto theRegionModel.- Parameters:
country- theRegionModel.COUNTRY- Returns:
- the modifier
RegionModel
-
withIsocodeShort
public RegionModelBuilder withIsocodeShort(java.lang.String isocodeShort)
Adds a the short isocode to theRegionModel.- Parameters:
isocodeShort- theRegionModel.ISOCODESHORT- Returns:
- the modifier
RegionModel
-
withIsocode
public RegionModelBuilder withIsocode(java.lang.String isocode)
Adds an isocode to theRegionModel.- Parameters:
isocode- theC2LItemModel.ISOCODE- Returns:
- the modifier
RegionModel
-
withName
public RegionModelBuilder withName(java.lang.String name)
Adds a name to theRegionModel.- Parameters:
name- theC2LItemModel.NAME- Returns:
- the modifier
RegionModel
-
-