public class VariantUtilsImpl extends Object implements VariantUtils
| Constructor and Description |
|---|
VariantUtilsImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllVariantAttributeValues(Product baseProduct)
Returns a String containing the values of any variant attributes of the given base product (delimited by the
default attribute delimiter '; ', the default value delimiter ', ' and the default value preamble ': ')
Example: 'color: red, green, blue; size: 8, 9, 10, 11' |
String |
getAllVariantAttributeValues(Product baseProduct,
boolean includeAttributeName,
String attributeDelimiter,
String valuePreamble,
String valueDelimiter)
Returns a String containing the values of any variant attributes of the given base product
Example: 'color: red, green, blue; size: 8, 9, 10, 11' |
String |
getAllVariantAttributeValues(Product baseProduct,
String attributeDelimiter,
String valuePreamble,
String valueDelimiter)
Returns a String containing the values of any variant attributes of the given base product
Example: 'color: red, green, blue; size: 8, 9, 10, 11' |
String |
getVariantAttributeValue(Product baseProduct,
String variantAttribute)
Returns a String containing the values of the specified variant attribute of the given base product (delimited by
the default value delimiter ', ' and the default value preamble ': ')
Example: 'color: red, green, blue' |
String |
getVariantAttributeValue(Product baseProduct,
String attributeQualifier,
boolean includeAttributeName,
String valuePreamble,
String valueDelimiter)
Returns a String containing the values of the specified variant attributes of the given base product (delimited by
the the default value delimiter ', ' and the default value preamble ': ')
Example: 'color: red, green, blue; size: 8, 9, 10, 11' |
String |
getVariantAttributeValue(Product baseProduct,
String attributeQualifier,
String valuePreamble,
String valueDelimiter)
Returns a String containing the values of the specified variant attributes of the given base product (delimited by
the the default value delimiter ', ' and the default value preamble ': ')
Example: 'color: red, green, blue; size: 8, 9, 10, 11' |
public String getAllVariantAttributeValues(Product baseProduct)
VariantUtilsgetAllVariantAttributeValues in interface VariantUtilsbaseProduct - The base product from which to get the variant attributespublic String getAllVariantAttributeValues(Product baseProduct, String attributeDelimiter, String valuePreamble, String valueDelimiter)
VariantUtilsgetAllVariantAttributeValues in interface VariantUtilsbaseProduct - The base product from which to get the variant attributesattributeDelimiter - The sign that delimites attributes (could be null, default is the linebreak '\n')valuePreamble - The sign that delimites the attribute name from the values (could be null, default is ': ')valueDelimiter - The sign that delimites attribute values (could be null, default is ', ')public String getAllVariantAttributeValues(Product baseProduct, boolean includeAttributeName, String attributeDelimiter, String valuePreamble, String valueDelimiter)
VariantUtilsgetAllVariantAttributeValues in interface VariantUtilsbaseProduct - The base product from which to get the variant attributesincludeAttributeName - If true, the name of each variant attribute is prepended to the valuesattributeDelimiter - The sign that delimites attributes (could be null, default is the linebreak '\n')valuePreamble - The sign that delimites the attribute name from the values (could be null, default is ': ')valueDelimiter - The sign that delimites attribute values (could be null, default is ', ')public String getVariantAttributeValue(Product baseProduct, String variantAttribute)
VariantUtilsgetVariantAttributeValue in interface VariantUtilsbaseProduct - The base product from which to get the variant attributesvariantAttribute - The qualifier of the variant attributepublic String getVariantAttributeValue(Product baseProduct, String attributeQualifier, String valuePreamble, String valueDelimiter)
VariantUtilsgetVariantAttributeValue in interface VariantUtilsbaseProduct - The base product from which to get the variant attributesattributeQualifier - The qualifier of the variant attributevaluePreamble - The sign that delimites the attribute name from the values (could be null, default is ': ')valueDelimiter - The sign that delimites attribute values (could be null, default is ', ')public String getVariantAttributeValue(Product baseProduct, String attributeQualifier, boolean includeAttributeName, String valuePreamble, String valueDelimiter)
VariantUtilsgetVariantAttributeValue in interface VariantUtilsbaseProduct - The base product from which to get the variant attributesattributeQualifier - The qualifier of the variant attributeincludeAttributeName - If true, the name of each variant attribute is prepended to the valuesvaluePreamble - The sign that delimites the attribute name from the values (could be null, default is ': ')valueDelimiter - The sign that delimites attribute values (could be null, default is ', ')Copyright © 2017 SAP SE. All Rights Reserved.