Class StyleMapConditionImpl

    • Field Detail

      • ELEM_NAME_MAPCONDITION

        public static final java.lang.String ELEM_NAME_MAPCONDITION
        The name of the map condition element.
        See Also:
        Constant Field Values
      • ATTR_NAME_MAPCONDITION_TO_STYLE

        public static final java.lang.String ATTR_NAME_MAPCONDITION_TO_STYLE
        The name of the map condition "to style" attribute.
        See Also:
        Constant Field Values
      • ATTR_NAME_MAPCONDITION_MAPPER

        public static final java.lang.String ATTR_NAME_MAPCONDITION_MAPPER
        The name of the map condition mapper attribute.
        See Also:
        Constant Field Values
      • ATTR_NAME_MAPCONDITION_ADDL_DATA

        public static final java.lang.String ATTR_NAME_MAPCONDITION_ADDL_DATA
        The name of the map condition "additional data" attribute.
        See Also:
        Constant Field Values
    • Constructor Detail

      • StyleMapConditionImpl

        public StyleMapConditionImpl()
    • Method Detail

      • getMapper

        public java.lang.String getMapper()
      • setMapper

        public void setMapper​(java.lang.String mapper)
      • getAdditionalData

        public java.lang.String getAdditionalData()
        Returns the additional data associated with this specific mapping condition.
        Specified by:
        getAdditionalData in interface StyleMapCondition
        Returns:
        The additional data associated with this specific mapping condition.
      • setAdditionalData

        public void setAdditionalData​(java.lang.String addlData)
        Sets the additional data associated with this specific mapping condition.
        Specified by:
        setAdditionalData in interface StyleMapCondition
        Parameters:
        addlData - The additional data associated with this specific mapping condition.
      • mapStyle

        public StyleMapperResult mapStyle​(java.lang.String fromStyle,
                                          StyleRequestContext context)
        Maps the specified style to a new style based on the data in the StyleRequestContext object as well as any additional data specified on the condition.
        Specified by:
        mapStyle in interface StyleMapClause
        Parameters:
        fromStyle - The style that is being requested.
        context - The data in the current style's request context.
        Returns:
        A StyleMapperResult object that describes the result of the mapping condition.
      • getToStyle

        public java.lang.String getToStyle()
        Returns the style to map to.
        Specified by:
        getToStyle in interface StyleMapClause
        Returns:
        The style to map to.
      • setToStyle

        public void setToStyle​(java.lang.String toStyle)
        Sets the style to map to.
        Specified by:
        setToStyle in interface StyleMapClause
        Parameters:
        toStyle - The style to map to.
      • getKeyAttribute

        protected java.lang.String getKeyAttribute()
        Description copied from class: AbstractConfigurationElement
        This method must return the attribute that uniquely identifies this element among its siblings; if no single attribute can be used, return null and override the getKey and setKey methods.
        Specified by:
        getKeyAttribute in class AbstractConfigurationElement
      • getKey

        public java.lang.Object getKey()
        This method is used to uniquely identify this StyleMapCondition within the StyleMap.
        Specified by:
        getKey in interface ConfigurationElement
        Overrides:
        getKey in class AbstractConfigurationElement
        Returns:
        The value representing the key of this object.
        Since:
        MicroStrategy Web 9.0.1