Class TextImpl
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.order.businessobject.impl.TextImpl
Representation of user configurable texts. A text consists of an id identifying the type of the text and the textual
information itself.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringassureMaxLength(String text2verify) voidclear()Clears all the fields in the test objectfinal TextImplclone()booleanDetermines whether the given object is equal to this objectReads the text handlegetId()Reads the type of the textfinal StringgetText()Reads the textinthashCode()booleanchecks whether the text or the id has been changed since the last invocation ofText.resetTextChanged()voidresets the text changed status tofalsevoidSets the handle (which is a temporary key to identify the object)voidSets the type of the textvoidSets the texttoString()Returns a string Representation
-
Constructor Details
-
TextImpl
public TextImpl()Creates a new object without initialization of the id and text information. After calling this constructor both fields are initialized with empty Strings -
TextImpl
Creates a new object and sets the id and text information.- Parameters:
id- Type of the texttext- The text itself
-
-
Method Details
-
getId
Description copied from interface:TextReads the type of the text -
setId
Description copied from interface:TextSets the type of the text -
getText
Description copied from interface:TextReads the text -
setText
Description copied from interface:TextSets the text -
assureMaxLength
-
toString
Returns a string Representation -
equals
Determines whether the given object is equal to this object -
hashCode
public int hashCode() -
getHandle
Description copied from interface:TextReads the text handle -
setHandle
Description copied from interface:TextSets the handle (which is a temporary key to identify the object) -
clear
public void clear()Description copied from interface:TextClears all the fields in the test object -
clone
-
hasTextChanged
public boolean hasTextChanged()Description copied from interface:Textchecks whether the text or the id has been changed since the last invocation ofText.resetTextChanged()- Specified by:
hasTextChangedin interfaceText- Returns:
true, only if the text has been changed
-
resetTextChanged
public void resetTextChanged()Description copied from interface:Textresets the text changed status tofalse- Specified by:
resetTextChangedin interfaceText
-