public class

StyleMapperResultImpl

extends Object
implements StyleMapperResult
java.lang.Object
   ↳ com.microstrategy.web.transform.StyleMapperResultImpl

Class Overview

This class represents a simple implementation of the StyleMapperResult interface.

Summary

Public Constructors
StyleMapperResultImpl(boolean conditionMet, String preferredStyleName)
Creates a new StyleMapperResultImpl object.
Public Methods
String getMappedStyleName()
Returns the preferred style name that was selected by the mapper, if the conditions were met.
void setMappedStyleName(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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.web.transform.StyleMapperResult

Public Constructors

public StyleMapperResultImpl (boolean conditionMet, String preferredStyleName)

Creates a new StyleMapperResultImpl object.

Parameters
conditionMet Whether the conditions were met or not.
preferredStyleName What the preferred style name should be.

Public Methods

public String getMappedStyleName ()

Returns the preferred style name that was selected by the mapper, if the conditions were met.

Returns
  • The preferred style name that was selected by the mapper, if the conditions were met.

public void setMappedStyleName (String toStyle)

Sets the preferred style name to map to, if the conditions were met.

Parameters
toStyle The preferred style name to map to, if the conditions were met.

public void setWereConditionsMet (boolean conditionsMet)

Sets whether the conditions were successfully met or not.

Parameters
conditionsMet Whether the conditions were successfully met or not.

public boolean wereConditionsMet ()

Returns whether the conditions for performing the mapping were met or not.

Returns
  • Whether the conditions for performing the mapping were met or not.