Class CommerceIdentifierImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.common.CommerceIdentifierImpl
-
- All Implemented Interfaces:
CommerceIdentifier
public class CommerceIdentifierImpl extends Object implements CommerceIdentifier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.cq.commerce.core.components.models.common.CommerceIdentifier
CommerceIdentifier.EntityType, CommerceIdentifier.IdentifierType
-
-
Constructor Summary
Constructors Constructor Description CommerceIdentifierImpl(String value, CommerceIdentifier.IdentifierType type, CommerceIdentifier.EntityType entityType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommerceIdentifier
fromProductSku(String sku)
CommerceIdentifier.EntityType
getEntityType()
The type of entity which identifier is forCommerceIdentifier.IdentifierType
getType()
The type of the identifierString
getValue()
The value of the identifier
-
-
-
Constructor Detail
-
CommerceIdentifierImpl
public CommerceIdentifierImpl(String value, CommerceIdentifier.IdentifierType type, CommerceIdentifier.EntityType entityType)
-
-
Method Detail
-
getValue
public String getValue()
Description copied from interface:CommerceIdentifier
The value of the identifier- Specified by:
getValue
in interfaceCommerceIdentifier
- Returns:
- a string value representing the value of the identifier
-
getType
public CommerceIdentifier.IdentifierType getType()
Description copied from interface:CommerceIdentifier
The type of the identifier- Specified by:
getType
in interfaceCommerceIdentifier
- Returns:
- a
CommerceIdentifier.IdentifierType
value
-
getEntityType
public CommerceIdentifier.EntityType getEntityType()
Description copied from interface:CommerceIdentifier
The type of entity which identifier is for- Specified by:
getEntityType
in interfaceCommerceIdentifier
- Returns:
- a
CommerceIdentifier.EntityType
value
-
fromProductSku
public static CommerceIdentifier fromProductSku(String sku)
-
-