Class FieldDefinitionImpl
java.lang.Object
com.commercetools.history.models.common.FieldDefinitionImpl
- All Implemented Interfaces:
FieldDefinition,io.vrap.rmf.base.client.ModelBase
public class FieldDefinitionImpl
extends Object
implements FieldDefinition, io.vrap.rmf.base.client.ModelBase
FieldDefinition
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLabel()getName()The name of the field.getType()inthashCode()voidsetInputHint(TextInputHint inputHint) set inputHintvoidsetLabel(LocalizedString label) set labelvoidThe name of the field.voidset typeMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.commercetools.history.models.common.FieldDefinition
withFieldDefinitionMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
FieldDefinitionImpl
public FieldDefinitionImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceFieldDefinition- Returns:
- type
-
getName
The name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (
_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also.- Specified by:
getNamein interfaceFieldDefinition- Returns:
- name
-
getLabel
- Specified by:
getLabelin interfaceFieldDefinition- Returns:
- label
-
getInputHint
- Specified by:
getInputHintin interfaceFieldDefinition- Returns:
- inputHint
-
setType
Description copied from interface:FieldDefinitionset type- Specified by:
setTypein interfaceFieldDefinition- Parameters:
type- value to be set
-
setName
Description copied from interface:FieldDefinitionThe name of the field. The name must be between two and 36 characters long and can contain the ASCII letters A to Z in lowercase or uppercase, digits, underscores (
_) and the hyphen-minus (-). The name must be unique for a given resource type ID. In case there is a field with the same name in another type it has to have the same FieldType also.- Specified by:
setNamein interfaceFieldDefinition- Parameters:
name- value to be set
-
setLabel
Description copied from interface:FieldDefinitionset label- Specified by:
setLabelin interfaceFieldDefinition- Parameters:
label- value to be set
-
setInputHint
Description copied from interface:FieldDefinitionset inputHint- Specified by:
setInputHintin interfaceFieldDefinition- Parameters:
inputHint- value to be set
-
equals
-
hashCode
-