Class GlyphNameFieldPart

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

public class GlyphNameFieldPart extends Object implements AdvancedMessageFormat.Part
Function formatting a character to a glyph name.
  • Field Details

    • fieldName

      private String fieldName
  • Constructor Details

    • GlyphNameFieldPart

      public GlyphNameFieldPart(String fieldName)
      Creates a new glyph name field part
      Parameters:
      fieldName - the field name
  • Method Details

    • isGenerated

      public boolean isGenerated(Map params)
      Indicates whether there is any content that is generated by this message part.
      Specified by:
      isGenerated in interface AdvancedMessageFormat.Part
      Parameters:
      params - the parameters to work with
      Returns:
      true if the part has content
    • getGlyphName

      private String getGlyphName(Object obj)
    • write

      public void write(StringBuffer sb, Map params)
      Writes the formatted part to a string buffer.
      Specified by:
      write in interface AdvancedMessageFormat.Part
      Parameters:
      sb - the target string buffer
      params - the parameters to work with
    • toString

      public String toString()
      Overrides:
      toString in class Object