Class ValueLine.ValueEntry
java.lang.Object
de.hybris.platform.impex.jalo.imp.ValueLine.ValueEntry
- Enclosing class:
- ValueLine
The actual value object inside a value line. This object holds the source value string and the translated value.
It tells whether or not the value has been resolved yet or if the cell shall be ignored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanClones the entry by copying the source cell value.voidGets the source cell value.intgetIndex()Gets the translated value.booleanhasUnresolvedReason(String valueLineReason) booleanisIgnore()Checks whether this entry will be ignored.booleanbooleanChecks whether the entry is unresolved.booleanisUnused()Checks whether the entry is unused.protected voidMarks the entry as unresolved.voidmarkUnresolved(String reason) Marks the entry as unresolved caused by given reason.protected voidMarks the entry as unused.voidMarks the entry as resolved and sets the translated value.toString()
-
Constructor Details
-
ValueEntry
Creates a new value entry.- Parameters:
index- column indexcellValue- source cell value
-
-
Method Details
-
createCopy
Clones the entry by copying the source cell value.- Returns:
- a clone of this entry
-
getIndex
public int getIndex() -
getCellValue
Gets the source cell value.- Returns:
- source value
-
isUnresolved
public boolean isUnresolved()Checks whether the entry is unresolved.- Returns:
- true if entry is unresolved, false otherwise
-
isManuallyMarkedUnresolved
public boolean isManuallyMarkedUnresolved() -
hasUnresolvedReason
-
getUnresolvedReason
-
markUnresolved
protected void markUnresolved()Marks the entry as unresolved. -
markUnresolved
Marks the entry as unresolved caused by given reason.- Parameters:
reason- reason for not resolving value
-
resolve
Marks the entry as resolved and sets the translated value.- Parameters:
newTranslatedValue- the value translated from source value
-
markUnused
protected void markUnused()Marks the entry as unused. -
isUnused
public boolean isUnused()Checks whether the entry is unused.- Returns:
- true if entry is unused, false otherwise
-
isIgnore
public boolean isIgnore()Checks whether this entry will be ignored.- Returns:
- true if ignore flag is set, false otherwise
-
getTranslatedValue
Gets the translated value.- Returns:
- translated value or null if unresolved
-
toString
-
dump
-
canIgnoreValueInNextTurn
protected boolean canIgnoreValueInNextTurn()
-