public interface VariantUtils
| 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 attributeQualifier)
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' |
String getAllVariantAttributeValues(Product baseProduct)
baseProduct - The base product from which to get the variant attributesString getAllVariantAttributeValues(Product baseProduct, String attributeDelimiter, String valuePreamble, String valueDelimiter)
baseProduct - 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 ', ')String getAllVariantAttributeValues(Product baseProduct, boolean includeAttributeName, String attributeDelimiter, String valuePreamble, String valueDelimiter)
baseProduct - 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 ', ')String getVariantAttributeValue(Product baseProduct, String attributeQualifier)
baseProduct - The base product from which to get the variant attributesattributeQualifier - The qualifier of the variant attributeString getVariantAttributeValue(Product baseProduct, String attributeQualifier, String valuePreamble, String valueDelimiter)
baseProduct - 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 ', ')String getVariantAttributeValue(Product baseProduct, String attributeQualifier, boolean includeAttributeName, String valuePreamble, String valueDelimiter)
baseProduct - 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.