Class TextImpl
- java.lang.Object
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.order.businessobject.impl.TextImpl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringassureMaxLength(java.lang.String text2verify)voidclear()Clears all the fields in the test objectTextImplclone()booleanequals(java.lang.Object o)Determines whether the given object is equal to this objectjava.lang.StringgetHandle()Reads the text handlejava.lang.StringgetId()Reads the type of the textjava.lang.StringgetText()Reads the textinthashCode()booleanhasTextChanged()checks whether the text or the id has been changed since the last invocation ofText.resetTextChanged()voidresetTextChanged()resets the text changed status tofalsevoidsetHandle(java.lang.String handle)Sets the handle (which is a temporary key to identify the object)voidsetId(java.lang.String id)Sets the type of the textvoidsetText(java.lang.String text)Sets the textjava.lang.StringtoString()Returns a string Representation
-
-
-
Constructor Detail
-
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
public TextImpl(java.lang.String id, java.lang.String text)Creates a new object and sets the id and text information.- Parameters:
id- Type of the texttext- The text itself
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:TextReads the type of the text
-
setId
public void setId(java.lang.String id)
Description copied from interface:TextSets the type of the text
-
getText
public final java.lang.String getText()
Description copied from interface:TextReads the text
-
setText
public void setText(java.lang.String text)
Description copied from interface:TextSets the text
-
assureMaxLength
protected java.lang.String assureMaxLength(java.lang.String text2verify)
-
toString
public java.lang.String toString()
Returns a string Representation- Overrides:
toStringin classjava.lang.Object- Returns:
- String giving information about the object
-
equals
public boolean equals(java.lang.Object o)
Determines whether the given object is equal to this object- Overrides:
equalsin classjava.lang.Object- Parameters:
o- Object to compare with- Returns:
trueif the object is equal,falseif not
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getHandle
public java.lang.String getHandle()
Description copied from interface:TextReads the text handle
-
setHandle
public void setHandle(java.lang.String handle)
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
public final TextImpl 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
-
-