Interface AdvancedMessageFormat.Part
- All Known Implementing Classes:
AdvancedMessageFormat.CompositePart, AdvancedMessageFormat.FunctionPart, AdvancedMessageFormat.SimpleFieldPart, AdvancedMessageFormat.TextPart, ChoiceFieldPart, EqualsFieldPart, EventFormatter.LookupFieldPart, GlyphNameFieldPart, HexFieldPart, IfFieldPart
- Enclosing class:
AdvancedMessageFormat
public static interface AdvancedMessageFormat.Part
Represents a message template part. This interface is implemented by various variants of
the single curly braces pattern ({field}, {field,if,yes,no} etc.).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisGenerated(Map<String, Object> params) Indicates whether there is any content that is generated by this message part.voidwrite(StringBuffer sb, Map<String, Object> params) Writes the formatted part to a string buffer.
-
Method Details
-
write
Writes the formatted part to a string buffer.- Parameters:
sb- the target string bufferparams- the parameters to work with
-
isGenerated
-