Class SimpleHeaderImpl
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.SimpleHeaderImpl
-
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,SimpleHeader,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
HeaderBaseImpl
public class SimpleHeaderImpl extends BusinessObjectBase implements SimpleHeader
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKey
-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
-
Constructor Summary
Constructors Constructor Description SimpleHeaderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Drops the state of the object.java.lang.Objectclone()Instead of a shallow-copy this returns a deep-copy of this SimpleHeaderImpl instance.java.lang.StringgetDescription()Get description added on the header level.TextgetText()Get text on the header level of the document.java.util.Map<java.lang.String,java.lang.Object>getTypedExtensionMap()Type safe getter for the extension mapbooleanisDirty()get the dirty flagvoidsetDescription(java.lang.String description)Sets the description on the header level.voidsetDirty(boolean isDirty)Set the dirty flagvoidsetText(Text text)Set the text on the header level of the document.java.lang.StringtoString()-
Methods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, setValid
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValid
-
Methods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:SimpleHeaderDrops the state of the object. All reference fields, except partnerList, are set to null, all primitive types are set to the default values they would have after the creation of a new instance. Use this method to reset the state to the state a newly created object would have. The advantage is, that the overhead caused by the normal object creation is omitted.- Specified by:
clearin interfaceSimpleHeader
-
isDirty
public boolean isDirty()
Description copied from interface:SimpleHeaderget the dirty flag- Specified by:
isDirtyin interfaceSimpleHeader- Returns:
- isDirty must the header be read from the backend true/false
-
setDirty
public void setDirty(boolean isDirty)
Description copied from interface:SimpleHeaderSet the dirty flag- Specified by:
setDirtyin interfaceSimpleHeader- Parameters:
isDirty- must the header be read from the backend true/false
-
getDescription
public java.lang.String getDescription()
Description copied from interface:SimpleHeaderGet description added on the header level.- Specified by:
getDescriptionin interfaceSimpleHeader- Returns:
- description
-
getText
public Text getText()
Description copied from interface:SimpleHeaderGet text on the header level of the document.- Specified by:
getTextin interfaceSimpleHeader- Returns:
- the text
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:SimpleHeaderSets the description on the header level.- Specified by:
setDescriptionin interfaceSimpleHeader- Parameters:
description- the description
-
setText
public void setText(Text text)
Description copied from interface:SimpleHeaderSet the text on the header level of the document.- Specified by:
setTextin interfaceSimpleHeader- Parameters:
text- the text to be set
-
clone
public java.lang.Object clone()
Instead of a shallow-copy this returns a deep-copy of this SimpleHeaderImpl instance.- Overrides:
clonein classBusinessObjectBase- Returns:
- a deep-copy of this SimpleHeader
-
getTypedExtensionMap
public java.util.Map<java.lang.String,java.lang.Object> getTypedExtensionMap()
Description copied from interface:SimpleHeaderType safe getter for the extension map- Specified by:
getTypedExtensionMapin interfaceSimpleHeader- Returns:
- extension map attached to this header
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBusinessObjectBase
-
-