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 booleanprivate booleanprotected List<AdvancedMessageFormat.Part> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisGenerated(Map<String, Object> params) Indicates whether there is any content that is generated by this message part.voidtoString()voidwrite(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.PartWrites the formatted part to a string buffer.- Specified by:
writein interfaceAdvancedMessageFormat.Part- Parameters:
sb- the target string bufferparams- the parameters to work with
-
isGenerated
Description copied from interface:AdvancedMessageFormat.PartIndicates whether there is any content that is generated by this message part.- Specified by:
isGeneratedin interfaceAdvancedMessageFormat.Part- Parameters:
params- the parameters to work with- Returns:
- true if the part has content
-
toString
-