Class ClassificationSystemCPQAttributesContainer
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.services.impl.ClassificationSystemCPQAttributesContainer
Immutable Object.
Container object for all CPQ related attributes of a single cstic within the hybris classification system.
Can be uniquely identified by the specified code.
Container object for all CPQ related attributes of a single cstic within the hybris classification system.
Can be uniquely identified by the specified code.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClassificationSystemCPQAttributesContainernullobject, to model the case when there exists no data for the specific cstci whithin the hybris classification system. -
Constructor Summary
ConstructorsConstructorDescriptionClassificationSystemCPQAttributesContainer(String code, String name, String description, Map<String, String> valueNames, Map<String, String> valueDescriptions, Collection<MediaModel> csticMedia, Map<String, Collection<MediaModel>> csticValueMedia) Default Constructor.
Because this object is immutable, all data has to be provided within this constructor call. -
Method Summary
-
Field Details
-
NULL_OBJ
nullobject, to model the case when there exists no data for the specific cstci whithin the hybris classification system.
-
-
Constructor Details
-
ClassificationSystemCPQAttributesContainer
public ClassificationSystemCPQAttributesContainer(String code, String name, String description, Map<String, String> valueNames, Map<String, String> valueDescriptions, Collection<MediaModel> csticMedia, Map<String, Collection<MediaModel>> csticValueMedia) Default Constructor.
Because this object is immutable, all data has to be provided within this constructor call.- Parameters:
code- unique identifier for this object, typically the cstic keyname- display name for the csticdescription- long text of the csticvalueNames- display names of all values belonging to this cstic, identified by the value namecsticMedia- all medias assigned to this csticcsticValueMedia- all medias assigned to cstic values
-
-
Method Details
-
getName
- Returns:
- display name of the cstic
-
getDescription
- Returns:
- long text of the cstic
-
getValueNames
- Returns:
- cstic value display name map, value name is key
-
getCsticMedia
- Returns:
- collection of cstic media assigned to the cstic represented by this container
-
getCsticValueMedia
- Returns:
- map with medias for each cstic value belonging to the cstic represented by this container
-
getValueDescriptions
- Returns:
- the valueDescriptions
-
hashCode
public int hashCode() -
equals
-