Class Translation
java.lang.Object
com.broadleafcommerce.dataexchange.domain.AbstractExchangeObject
com.broadleafcommerce.dataexchange.domain.translation.Translation
- All Implemented Interfaces:
 ExchangeObject,Serializable
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe name of the field that is being translated.The ID of the owning entity.The type of the owning entity.getId()The locale for this translation.getValue()This will usually be a String.inthashCode()voidsetEntityField(String entityField) The name of the field that is being translated.voidsetEntityId(String entityId) The ID of the owning entity.voidsetEntityType(String entityType) The type of the owning entity.voidSet the id of the entityvoidThe locale for this translation.voidThis will usually be a String.toString()Methods inherited from class com.broadleafcommerce.dataexchange.domain.AbstractExchangeObject
getCorrelationId, getCustomProperties, getParentCorrelationId, isNewlyCreated, setCorrelationId, setCustomProperties, setCustomProperty, setNewlyCreated, setParentCorrelationIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.dataexchange.domain.ExchangeObject
getContextState, setContextState 
- 
Constructor Details
- 
Translation
public Translation() 
 - 
 - 
Method Details
- 
getId
- Returns:
 - the id of the entity
 
 - 
getEntityField
The name of the field that is being translated. - 
getEntityId
The ID of the owning entity. - 
getEntityType
The type of the owning entity. - 
getLocale
The locale for this translation. - 
getValue
This will usually be a String. But since we can translate anything, really, this allows us to accept numbers, collections, etc. - 
setId
Description copied from interface:ExchangeObjectSet the id of the entity- Parameters:
 id- the id of the entity
 - 
setEntityField
The name of the field that is being translated. - 
setEntityId
The ID of the owning entity. - 
setEntityType
The type of the owning entity. - 
setLocale
The locale for this translation. - 
setValue
This will usually be a String. But since we can translate anything, really, this allows us to accept numbers, collections, etc. - 
toString
- Overrides:
 toStringin classAbstractExchangeObject
 - 
equals
- Overrides:
 equalsin classAbstractExchangeObject
 - 
canEqual
- Overrides:
 canEqualin classAbstractExchangeObject
 - 
hashCode
public int hashCode()- Overrides:
 hashCodein classAbstractExchangeObject
 
 -