Class ClassificationSystemCPQAttributesContainer
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.interf.services.impl.ClassificationSystemCPQAttributesContainer
-
public class ClassificationSystemCPQAttributesContainer extends java.lang.ObjectImmutable 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.
-
-
Field Summary
Fields Modifier and Type Field Description static ClassificationSystemCPQAttributesContainerNULL_OBJnullobject, to model the case when there exists no data for the specific cstci whithin the hybris classification system.
-
Constructor Summary
Constructors Constructor Description ClassificationSystemCPQAttributesContainer(java.lang.String code, java.lang.String name, java.lang.String description, java.util.Map<java.lang.String,java.lang.String> valueNames, java.util.Map<java.lang.String,java.lang.String> valueDescriptions, java.util.Collection<MediaModel> csticMedia, java.util.Map<java.lang.String,java.util.Collection<MediaModel>> csticValueMedia)Default Constructor.
Because this object is immutable, all data has to be provided within this constructor call.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Collection<MediaModel>getCsticMedia()java.util.Map<java.lang.String,java.util.Collection<MediaModel>>getCsticValueMedia()java.lang.StringgetDescription()java.lang.StringgetName()java.util.Map<java.lang.String,java.lang.String>getValueDescriptions()java.util.Map<java.lang.String,java.lang.String>getValueNames()inthashCode()
-
-
-
Field Detail
-
NULL_OBJ
public static final ClassificationSystemCPQAttributesContainer NULL_OBJ
nullobject, to model the case when there exists no data for the specific cstci whithin the hybris classification system.
-
-
Constructor Detail
-
ClassificationSystemCPQAttributesContainer
public ClassificationSystemCPQAttributesContainer(java.lang.String code, java.lang.String name, java.lang.String description, java.util.Map<java.lang.String,java.lang.String> valueNames, java.util.Map<java.lang.String,java.lang.String> valueDescriptions, java.util.Collection<MediaModel> csticMedia, java.util.Map<java.lang.String,java.util.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 Detail
-
getName
public java.lang.String getName()
- Returns:
- display name of the cstic
-
getDescription
public java.lang.String getDescription()
- Returns:
- long text of the cstic
-
getValueNames
public java.util.Map<java.lang.String,java.lang.String> getValueNames()
- Returns:
- cstic value display name map, value name is key
-
getCsticMedia
public java.util.Collection<MediaModel> getCsticMedia()
- Returns:
- collection of cstic media assigned to the cstic represented by this container
-
getCsticValueMedia
public java.util.Map<java.lang.String,java.util.Collection<MediaModel>> getCsticValueMedia()
- Returns:
- map with medias for each cstic value belonging to the cstic represented by this container
-
getValueDescriptions
public java.util.Map<java.lang.String,java.lang.String> getValueDescriptions()
- Returns:
- the valueDescriptions
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-