Class ChoiceFieldPart

  • All Implemented Interfaces:
    org.apache.fop.util.text.AdvancedMessageFormat.Part

    public class ChoiceFieldPart
    extends java.lang.Object
    implements org.apache.fop.util.text.AdvancedMessageFormat.Part
    Defines a "choice" field part that works like ChoiceFormat.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ChoiceFieldPart.Factory
      Factory for ChoiceFieldPart.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChoiceFieldPart​(java.lang.String fieldName, java.lang.String choicesPattern)
      Creates a new choice part.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isGenerated​(java.util.Map params)
      java.lang.String toString()
      void write​(java.lang.StringBuffer sb, java.util.Map params)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ChoiceFieldPart

        public ChoiceFieldPart​(java.lang.String fieldName,
                               java.lang.String choicesPattern)
        Creates a new choice part.
        Parameters:
        fieldName - the field name to work on
        choicesPattern - the choices pattern (as used by ChoiceFormat)
    • Method Detail

      • isGenerated

        public boolean isGenerated​(java.util.Map params)
        Specified by:
        isGenerated in interface org.apache.fop.util.text.AdvancedMessageFormat.Part
      • write

        public void write​(java.lang.StringBuffer sb,
                          java.util.Map params)
        Specified by:
        write in interface org.apache.fop.util.text.AdvancedMessageFormat.Part
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object