Class ProductAttributeImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.ProductAttributeImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<ProductAttribute>,org.broadleafcommerce.common.value.ValueAssignable<String>,ProductAttribute
The Class ProductAttributeImpl.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends ProductAttribute>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()Gets the id.getName()Gets the product.getValue()inthashCode()voidSets the id.voidvoidsetProduct(Product product) Sets the product.voidtoString()
-
Field Details
-
id
The id. -
name
The name. -
value
The value. -
product
The product.
-
-
Constructor Details
-
ProductAttributeImpl
public ProductAttributeImpl()
-
-
Method Details
-
getId
Description copied from interface:ProductAttributeGets the id.- Specified by:
getIdin interfaceProductAttribute- Returns:
- the id
-
setId
Description copied from interface:ProductAttributeSets the id.- Specified by:
setIdin interfaceProductAttribute- Parameters:
id- the new id
-
getValue
- Specified by:
getValuein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
setValue
- Specified by:
setValuein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
getName
- Specified by:
getNamein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
setName
- Specified by:
setNamein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
toString
-
getProduct
Description copied from interface:ProductAttributeGets the product.- Specified by:
getProductin interfaceProductAttribute- Returns:
- the product
-
setProduct
Description copied from interface:ProductAttributeSets the product.- Specified by:
setProductin interfaceProductAttribute- Parameters:
product- the new product
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends ProductAttribute> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<ProductAttribute>- Throws:
CloneNotSupportedException
-