Class StyleMapperResultImpl

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface StyleMapperResult
        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 interface StyleMapperResult
        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 interface StyleMapperResult
        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 interface StyleMapperResult
        Parameters:
        conditionsMet - Whether the conditions were successfully met or not.