Skip to content

Commit

Permalink
[OData] Renamed internal variable value to cloudSdkValue (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP authored Dec 18, 2024
1 parent 9eef08a commit ee665be
Show file tree
Hide file tree
Showing 47 changed files with 802 additions and 804 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ protected void fromMap( final Map<java.lang.String, Object> inputValues )
// navigation properties
{
if( (cloudSdkValues).containsKey("Address") ) {
final Object value = (cloudSdkValues).remove("Address");
if( value instanceof Map ) {
final Object cloudSdkValue = (cloudSdkValues).remove("Address");
if( cloudSdkValue instanceof Map ) {
if( toAddress == null ) {
toAddress = new Address();
}
@SuppressWarnings( "unchecked" )
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) value);
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) cloudSdkValue);
toAddress.fromMap(inputMap);
}
}
Expand Down Expand Up @@ -310,12 +310,12 @@ public Option<Address> getAddressIfPresent()
/**
* Overwrites the associated <b>Address</b> entity for the loaded navigation property <b>Address</b>.
*
* @param value
* @param cloudSdkValue
* New <b>Address</b> entity.
*/
public void setAddress( final Address value )
public void setAddress( final Address cloudSdkValue )
{
toAddress = value;
toAddress = cloudSdkValue;
}

/**
Expand Down Expand Up @@ -409,23 +409,23 @@ public final static class CustomerBuilder

private Address toAddress;

private Customer.CustomerBuilder toAddress( final Address value )
private Customer.CustomerBuilder toAddress( final Address cloudSdkValue )
{
toAddress = value;
toAddress = cloudSdkValue;
return this;
}

/**
* Navigation property <b>Address</b> for <b>Customer</b> to single <b>Address</b>.
*
* @param value
* @param cloudSdkValue
* The Address to build this Customer with.
* @return This Builder to allow for a fluent interface.
*/
@Nonnull
public Customer.CustomerBuilder address( final Address value )
public Customer.CustomerBuilder address( final Address cloudSdkValue )
{
return toAddress(value);
return toAddress(cloudSdkValue);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,24 +362,24 @@ protected void fromMap( final Map<java.lang.String, Object> inputValues )
// navigation properties
{
if( (cloudSdkValues).containsKey("Vendor") ) {
final Object value = (cloudSdkValues).remove("Vendor");
if( value instanceof Map ) {
final Object cloudSdkValue = (cloudSdkValues).remove("Vendor");
if( cloudSdkValue instanceof Map ) {
if( toVendor == null ) {
toVendor = new Vendor();
}
@SuppressWarnings( "unchecked" )
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) value);
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) cloudSdkValue);
toVendor.fromMap(inputMap);
}
}
if( (cloudSdkValues).containsKey("Shelf") ) {
final Object value = (cloudSdkValues).remove("Shelf");
if( value instanceof Map ) {
final Object cloudSdkValue = (cloudSdkValues).remove("Shelf");
if( cloudSdkValue instanceof Map ) {
if( toShelf == null ) {
toShelf = new Shelf();
}
@SuppressWarnings( "unchecked" )
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) value);
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) cloudSdkValue);
toShelf.fromMap(inputMap);
}
}
Expand Down Expand Up @@ -426,12 +426,12 @@ public Option<Vendor> getVendorIfPresent()
/**
* Overwrites the associated <b>Vendor</b> entity for the loaded navigation property <b>Vendor</b>.
*
* @param value
* @param cloudSdkValue
* New <b>Vendor</b> entity.
*/
public void setVendor( final Vendor value )
public void setVendor( final Vendor cloudSdkValue )
{
toVendor = value;
toVendor = cloudSdkValue;
}

/**
Expand All @@ -453,12 +453,12 @@ public Option<Shelf> getShelfIfPresent()
/**
* Overwrites the associated <b>Shelf</b> entity for the loaded navigation property <b>Shelf</b>.
*
* @param value
* @param cloudSdkValue
* New <b>Shelf</b> entity.
*/
public void setShelf( final Shelf value )
public void setShelf( final Shelf cloudSdkValue )
{
toShelf = value;
toShelf = cloudSdkValue;
}

/**
Expand All @@ -471,42 +471,42 @@ public final static class ProductBuilder
private Vendor toVendor;
private Shelf toShelf;

private Product.ProductBuilder toVendor( final Vendor value )
private Product.ProductBuilder toVendor( final Vendor cloudSdkValue )
{
toVendor = value;
toVendor = cloudSdkValue;
return this;
}

/**
* Navigation property <b>Vendor</b> for <b>Product</b> to single <b>Vendor</b>.
*
* @param value
* @param cloudSdkValue
* The Vendor to build this Product with.
* @return This Builder to allow for a fluent interface.
*/
@Nonnull
public Product.ProductBuilder vendor( final Vendor value )
public Product.ProductBuilder vendor( final Vendor cloudSdkValue )
{
return toVendor(value);
return toVendor(cloudSdkValue);
}

private Product.ProductBuilder toShelf( final Shelf value )
private Product.ProductBuilder toShelf( final Shelf cloudSdkValue )
{
toShelf = value;
toShelf = cloudSdkValue;
return this;
}

/**
* Navigation property <b>Shelf</b> for <b>Product</b> to single <b>Shelf</b>.
*
* @param value
* @param cloudSdkValue
* The Shelf to build this Product with.
* @return This Builder to allow for a fluent interface.
*/
@Nonnull
public Product.ProductBuilder shelf( final Shelf value )
public Product.ProductBuilder shelf( final Shelf cloudSdkValue )
{
return toShelf(value);
return toShelf(cloudSdkValue);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ protected void fromMap( final Map<String, Object> inputValues )
// navigation properties
{
if( (cloudSdkValues).containsKey("Customer") ) {
final Object value = (cloudSdkValues).remove("Customer");
if( value instanceof Map ) {
final Object cloudSdkValue = (cloudSdkValues).remove("Customer");
if( cloudSdkValue instanceof Map ) {
if( toCustomer == null ) {
toCustomer = new Customer();
}
@SuppressWarnings( "unchecked" )
final Map<String, Object> inputMap = ((Map<String, Object>) value);
final Map<String, Object> inputMap = ((Map<String, Object>) cloudSdkValue);
toCustomer.fromMap(inputMap);
}
}
Expand Down Expand Up @@ -330,12 +330,12 @@ public Option<Customer> getCustomerIfPresent()
/**
* Overwrites the associated <b>Customer</b> entity for the loaded navigation property <b>Customer</b>.
*
* @param value
* @param cloudSdkValue
* New <b>Customer</b> entity.
*/
public void setCustomer( final Customer value )
public void setCustomer( final Customer cloudSdkValue )
{
toCustomer = value;
toCustomer = cloudSdkValue;
}

/**
Expand All @@ -347,23 +347,23 @@ public final static class ReceiptBuilder

private Customer toCustomer;

private Receipt.ReceiptBuilder toCustomer( final Customer value )
private Receipt.ReceiptBuilder toCustomer( final Customer cloudSdkValue )
{
toCustomer = value;
toCustomer = cloudSdkValue;
return this;
}

/**
* Navigation property <b>Customer</b> for <b>Receipt</b> to single <b>Customer</b>.
*
* @param value
* @param cloudSdkValue
* The Customer to build this Receipt with.
* @return This Builder to allow for a fluent interface.
*/
@Nonnull
public Receipt.ReceiptBuilder customer( final Customer value )
public Receipt.ReceiptBuilder customer( final Customer cloudSdkValue )
{
return toCustomer(value);
return toCustomer(cloudSdkValue);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,26 +208,26 @@ protected void fromMap( final Map<String, Object> inputValues )
// navigation properties
{
if( (cloudSdkValues).containsKey("FloorPlan") ) {
final Object value = (cloudSdkValues).remove("FloorPlan");
if( value instanceof Map ) {
final Object cloudSdkValue = (cloudSdkValues).remove("FloorPlan");
if( cloudSdkValue instanceof Map ) {
if( toFloorPlan == null ) {
toFloorPlan = new FloorPlan();
}
@SuppressWarnings( "unchecked" )
final Map<String, Object> inputMap = ((Map<String, Object>) value);
final Map<String, Object> inputMap = ((Map<String, Object>) cloudSdkValue);
toFloorPlan.fromMap(inputMap);
}
}
if( (cloudSdkValues).containsKey("Products") ) {
final Object value = (cloudSdkValues).remove("Products");
if( value instanceof Iterable ) {
final Object cloudSdkValue = (cloudSdkValues).remove("Products");
if( cloudSdkValue instanceof Iterable ) {
if( toProducts == null ) {
toProducts = Lists.newArrayList();
} else {
toProducts = Lists.newArrayList(toProducts);
}
int i = 0;
for( Object item : ((Iterable<?>) value) ) {
for( Object item : ((Iterable<?>) cloudSdkValue) ) {
if( !(item instanceof Map) ) {
continue;
}
Expand Down Expand Up @@ -289,12 +289,12 @@ public Option<FloorPlan> getFloorPlanIfPresent()
/**
* Overwrites the associated <b>FloorPlan</b> entity for the loaded navigation property <b>FloorPlan</b>.
*
* @param value
* @param cloudSdkValue
* New <b>FloorPlan</b> entity.
*/
public void setFloorPlan( final FloorPlan value )
public void setFloorPlan( final FloorPlan cloudSdkValue )
{
toFloorPlan = value;
toFloorPlan = cloudSdkValue;
}

/**
Expand Down Expand Up @@ -324,16 +324,16 @@ public Option<List<Product>> getProductsIfPresent()
* first time and it has not yet been loaded, an OData query will be run in order to load the missing information
* and its result will get cached for future invocations.
*
* @param value
* @param cloudSdkValue
* List of <b>Product</b> entities.
*/
public void setProducts( @Nonnull final List<Product> value )
public void setProducts( @Nonnull final List<Product> cloudSdkValue )
{
if( toProducts == null ) {
toProducts = Lists.newArrayList();
}
toProducts.clear();
toProducts.addAll(value);
toProducts.addAll(cloudSdkValue);
}

/**
Expand Down Expand Up @@ -390,42 +390,42 @@ public final static class ShelfBuilder
private FloorPlan toFloorPlan;
private List<Product> toProducts = Lists.newArrayList();

private Shelf.ShelfBuilder toFloorPlan( final FloorPlan value )
private Shelf.ShelfBuilder toFloorPlan( final FloorPlan cloudSdkValue )
{
toFloorPlan = value;
toFloorPlan = cloudSdkValue;
return this;
}

/**
* Navigation property <b>FloorPlan</b> for <b>Shelf</b> to single <b>FloorPlan</b>.
*
* @param value
* @param cloudSdkValue
* The FloorPlan to build this Shelf with.
* @return This Builder to allow for a fluent interface.
*/
@Nonnull
public Shelf.ShelfBuilder floorPlan( final FloorPlan value )
public Shelf.ShelfBuilder floorPlan( final FloorPlan cloudSdkValue )
{
return toFloorPlan(value);
return toFloorPlan(cloudSdkValue);
}

private Shelf.ShelfBuilder toProducts( final List<Product> value )
private Shelf.ShelfBuilder toProducts( final List<Product> cloudSdkValue )
{
toProducts.addAll(value);
toProducts.addAll(cloudSdkValue);
return this;
}

/**
* Navigation property <b>Products</b> for <b>Shelf</b> to multiple <b>Product</b>.
*
* @param value
* @param cloudSdkValue
* The Products to build this Shelf with.
* @return This Builder to allow for a fluent interface.
*/
@Nonnull
public Shelf.ShelfBuilder products( Product... value )
public Shelf.ShelfBuilder products( Product... cloudSdkValue )
{
return toProducts(Lists.newArrayList(value));
return toProducts(Lists.newArrayList(cloudSdkValue));
}

}
Expand Down
Loading

0 comments on commit ee665be

Please sign in to comment.