Class FormatNumberSupport

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
    Direct Known Subclasses:
    FormatNumberTag, FormatNumberTag

    public abstract class FormatNumberSupport
    extends javax.servlet.jsp.tagext.BodyTagSupport
    Support for tag handlers for <formatNumber>, the number formatting tag in JSTL 1.0.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void configureFormatter​(java.text.NumberFormat formatter)  
      private java.text.NumberFormat createFormatter​(java.util.Locale loc)  
      int doEndTag()  
      private void init()  
      void release()  
      private void setCurrency​(java.text.NumberFormat formatter)  
      void setScope​(java.lang.String scope)  
      void setVar​(java.lang.String var)  
      • Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.jsp.tagext.Tag

        getParent, setPageContext, setParent
    • Field Detail

      • GET_INSTANCE_PARAM_TYPES

        private static final java.lang.Class[] GET_INSTANCE_PARAM_TYPES
      • value

        protected java.lang.Object value
      • valueSpecified

        protected boolean valueSpecified
      • type

        protected java.lang.String type
      • pattern

        protected java.lang.String pattern
      • currencyCode

        protected java.lang.String currencyCode
      • currencySymbol

        protected java.lang.String currencySymbol
      • isGroupingUsed

        protected boolean isGroupingUsed
      • groupingUsedSpecified

        protected boolean groupingUsedSpecified
      • maxIntegerDigits

        protected int maxIntegerDigits
      • maxIntegerDigitsSpecified

        protected boolean maxIntegerDigitsSpecified
      • minIntegerDigits

        protected int minIntegerDigits
      • minIntegerDigitsSpecified

        protected boolean minIntegerDigitsSpecified
      • maxFractionDigits

        protected int maxFractionDigits
      • maxFractionDigitsSpecified

        protected boolean maxFractionDigitsSpecified
      • minFractionDigits

        protected int minFractionDigits
      • minFractionDigitsSpecified

        protected boolean minFractionDigitsSpecified
      • var

        private java.lang.String var
      • scope

        private int scope
      • currencyClass

        private static java.lang.Class currencyClass
    • Constructor Detail

      • FormatNumberSupport

        public FormatNumberSupport()
    • Method Detail

      • init

        private void init()
      • setVar

        public void setVar​(java.lang.String var)
      • setScope

        public void setScope​(java.lang.String scope)
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • release

        public void release()
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.servlet.jsp.tagext.BodyTagSupport
      • createFormatter

        private java.text.NumberFormat createFormatter​(java.util.Locale loc)
                                                throws javax.servlet.jsp.JspException
        Throws:
        javax.servlet.jsp.JspException
      • configureFormatter

        private void configureFormatter​(java.text.NumberFormat formatter)
      • setCurrency

        private void setCurrency​(java.text.NumberFormat formatter)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception