Package org.apache.fop.util.text
Class AdvancedMessageFormat.CompositePart
java.lang.Object
org.apache.fop.util.text.AdvancedMessageFormat.CompositePart
- All Implemented Interfaces:
AdvancedMessageFormat.Part
- Enclosing class:
- AdvancedMessageFormat
private static class AdvancedMessageFormat.CompositePart
extends Object
implements AdvancedMessageFormat.Part
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
protected List<AdvancedMessageFormat.Part>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isGenerated
(Map<String, Object> params) Indicates whether there is any content that is generated by this message part.void
toString()
void
write
(StringBuffer sb, Map<String, Object> params) Writes the formatted part to a string buffer.
-
Field Details
-
parts
-
conditional
private boolean conditional -
hasSections
private boolean hasSections
-
-
Constructor Details
-
CompositePart
public CompositePart(boolean conditional) -
CompositePart
-
-
Method Details
-
addChild
-
newSection
public void newSection() -
write
Description copied from interface:AdvancedMessageFormat.Part
Writes the formatted part to a string buffer.- Specified by:
write
in interfaceAdvancedMessageFormat.Part
- Parameters:
sb
- the target string bufferparams
- the parameters to work with
-
isGenerated
Description copied from interface:AdvancedMessageFormat.Part
Indicates whether there is any content that is generated by this message part.- Specified by:
isGenerated
in interfaceAdvancedMessageFormat.Part
- Parameters:
params
- the parameters to work with- Returns:
- true if the part has content
-
toString
-