Class ClassificationSystemCPQAttributesContainer
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.interf.services.impl.ClassificationSystemCPQAttributesContainer
-
public class ClassificationSystemCPQAttributesContainer extends java.lang.Object
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.
-
-
Field Summary
Fields Modifier and Type Field Description static ClassificationSystemCPQAttributesContainer
NULL_OBJ
null
object, 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 boolean
equals(java.lang.Object obj)
java.util.Collection<MediaModel>
getCsticMedia()
java.util.Map<java.lang.String,java.util.Collection<MediaModel>>
getCsticValueMedia()
java.lang.String
getDescription()
java.lang.String
getName()
java.util.Map<java.lang.String,java.lang.String>
getValueDescriptions()
java.util.Map<java.lang.String,java.lang.String>
getValueNames()
int
hashCode()
-
-
-
Field Detail
-
NULL_OBJ
public static final ClassificationSystemCPQAttributesContainer NULL_OBJ
null
object, 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-