Class ChoiceFieldPart

java.lang.Object
org.apache.fop.util.text.ChoiceFieldPart
All Implemented Interfaces:
org.apache.fop.util.text.AdvancedMessageFormat.Part

public class ChoiceFieldPart extends Object implements org.apache.fop.util.text.AdvancedMessageFormat.Part
Defines a "choice" field part that works like ChoiceFormat.
  • Constructor Details

    • ChoiceFieldPart

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

    • isGenerated

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

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

      public String toString()
      Overrides:
      toString in class Object