Package com.microstrategy.web.transform
Class StyleMapperResultImpl
- java.lang.Object
-
- com.microstrategy.web.transform.StyleMapperResultImpl
-
- All Implemented Interfaces:
StyleMapperResult
public class StyleMapperResultImpl extends java.lang.Object implements StyleMapperResult
This class represents a simple implementation of theStyleMapperResult
interface.- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description StyleMapperResultImpl(boolean conditionMet, java.lang.String preferredStyleName)
Creates a new StyleMapperResultImpl object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMappedStyleName()
Returns the preferred style name that was selected by the mapper, if the conditions were met.void
setMappedStyleName(java.lang.String toStyle)
Sets the preferred style name to map to, if the conditions were met.void
setWereConditionsMet(boolean conditionsMet)
Sets whether the conditions were successfully met or not.boolean
wereConditionsMet()
Returns whether the conditions for performing the mapping were met or not.
-
-
-
Constructor Detail
-
StyleMapperResultImpl
public StyleMapperResultImpl(boolean conditionMet, java.lang.String preferredStyleName)
Creates a new StyleMapperResultImpl object.- Parameters:
conditionMet
- Whether the conditions were met or not.preferredStyleName
- What the preferred style name should be.
-
-
Method Detail
-
wereConditionsMet
public boolean wereConditionsMet()
Returns whether the conditions for performing the mapping were met or not.- Specified by:
wereConditionsMet
in interfaceStyleMapperResult
- Returns:
- Whether the conditions for performing the mapping were met or not.
-
getMappedStyleName
public java.lang.String getMappedStyleName()
Returns the preferred style name that was selected by the mapper, if the conditions were met.- Specified by:
getMappedStyleName
in interfaceStyleMapperResult
- Returns:
- The preferred style name that was selected by the mapper, if the conditions were met.
-
setMappedStyleName
public void setMappedStyleName(java.lang.String toStyle)
Sets the preferred style name to map to, if the conditions were met.- Specified by:
setMappedStyleName
in interfaceStyleMapperResult
- Parameters:
toStyle
- The preferred style name to map to, if the conditions were met.
-
setWereConditionsMet
public void setWereConditionsMet(boolean conditionsMet)
Sets whether the conditions were successfully met or not.- Specified by:
setWereConditionsMet
in interfaceStyleMapperResult
- Parameters:
conditionsMet
- Whether the conditions were successfully met or not.
-
-