Class HexFieldPart

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

public class HexFieldPart extends Object implements AdvancedMessageFormat.Part
Function formatting a number or character to a hex value.
  • Field Details

    • fieldName

      private String fieldName
  • Constructor Details

    • HexFieldPart

      public HexFieldPart(String fieldName)
      Creates a new hex 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
    • 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