Class ReferenceFieldImpl
java.lang.Object
com.commercetools.importapi.models.customfields.ReferenceFieldImpl
- All Implemented Interfaces:
CustomField
,ReferenceField
,io.vrap.rmf.base.client.ModelBase
public class ReferenceFieldImpl
extends Object
implements ReferenceField, io.vrap.rmf.base.client.ModelBase
A field with a reference value.
-
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.customfields.ReferenceField
REFERENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
The type of this field.getValue()
References a resource by keyint
hashCode()
void
setValue
(KeyReference value) References a resource by keyMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.customfields.CustomField
withCustomField
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.importapi.models.customfields.ReferenceField
withReferenceField
-
Constructor Details
-
ReferenceFieldImpl
public ReferenceFieldImpl()create empty instance
-
-
Method Details
-
getType
The type of this field.
- Specified by:
getType
in interfaceCustomField
- Returns:
- type
-
getValue
References a resource by key
- Specified by:
getValue
in interfaceReferenceField
- Returns:
- value
-
setValue
Description copied from interface:ReferenceField
References a resource by key
- Specified by:
setValue
in interfaceReferenceField
- Parameters:
value
- value to be set
-
equals
-
hashCode
public int hashCode()
-