Class ProductAttributeImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.ProductAttributeImpl
- All Implemented Interfaces:
Serializable,MultiTenantCloneable<ProductAttribute>,ValueAssignable<String>,ProductAttribute
The Class ProductAttributeImpl.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends ProductAttribute>
CreateResponse<G>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 interfaceValueAssignable<String>
-
setValue
- Specified by:
setValuein interfaceValueAssignable<String>
-
getName
- Specified by:
getNamein interfaceValueAssignable<String>
-
setName
- Specified by:
setNamein interfaceValueAssignable<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> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceMultiTenantCloneable<ProductAttribute>- Throws:
CloneNotSupportedException
-