Interface AdvancedMessageFormat.PartFactory

All Known Implementing Classes:
ChoiceFieldPart.Factory, EqualsFieldPart.Factory, EventFormatter.LookupFieldPartFactory, GlyphNameFieldPart.Factory, HexFieldPart.Factory, IfFieldPart.Factory
Enclosing class:
AdvancedMessageFormat

public static interface AdvancedMessageFormat.PartFactory
Implementations of this interface parse a field part and return message parts.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the message part format.
    newPart(String fieldName, String values)
    Creates a new part by parsing the values parameter to configure the part.
  • Method Details

    • newPart

      AdvancedMessageFormat.Part newPart(String fieldName, String values)
      Creates a new part by parsing the values parameter to configure the part.
      Parameters:
      fieldName - the field name
      values - the unparsed parameter values
      Returns:
      the new message part
    • getFormat

      String getFormat()
      Returns the name of the message part format.
      Returns:
      the name of the message part format