Class ReferenceAttributeImpl
java.lang.Object
com.commercetools.importapi.models.productvariants.ReferenceAttributeImpl
- All Implemented Interfaces:
Attribute
,ReferenceAttribute
,io.vrap.rmf.base.client.ModelBase
public class ReferenceAttributeImpl
extends Object
implements ReferenceAttribute, io.vrap.rmf.base.client.ModelBase
This type represents an attribute whose value is a key reference.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.importapi.models.productvariants.ReferenceAttribute
REFERENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
The name of this attribute must match a name of the product types attribute definitions.getType()
getValue()
References a resource by key.int
hashCode()
void
The name of this attribute must match a name of the product types attribute definitions.void
setValue
(KeyReference value) References a resource by key.toString()
Methods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
withAttribute
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.importapi.models.productvariants.ReferenceAttribute
withReferenceAttribute
-
Constructor Details
-
ReferenceAttributeImpl
public ReferenceAttributeImpl()create empty instance
-
-
Method Details
-
getName
The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.
-
getType
-
getValue
References a resource by key.
- Specified by:
getValue
in interfaceReferenceAttribute
- Returns:
- value
-
setName
Description copied from interface:Attribute
The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.
-
setValue
Description copied from interface:ReferenceAttribute
References a resource by key.
- Specified by:
setValue
in interfaceReferenceAttribute
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-