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 java.lang.Object implements AdvancedMessageFormat.Part
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
conditional
private boolean
hasSections
protected java.util.List<AdvancedMessageFormat.Part>
parts
-
Constructor Summary
Constructors Modifier Constructor Description CompositePart(boolean conditional)
private
CompositePart(java.util.List<AdvancedMessageFormat.Part> parts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(AdvancedMessageFormat.Part part)
boolean
isGenerated(java.util.Map<java.lang.String,java.lang.Object> params)
Indicates whether there is any content that is generated by this message part.void
newSection()
java.lang.String
toString()
void
write(java.lang.StringBuffer sb, java.util.Map<java.lang.String,java.lang.Object> params)
Writes the formatted part to a string buffer.
-
-
-
Field Detail
-
parts
protected java.util.List<AdvancedMessageFormat.Part> parts
-
conditional
private boolean conditional
-
hasSections
private boolean hasSections
-
-
Constructor Detail
-
CompositePart
public CompositePart(boolean conditional)
-
CompositePart
private CompositePart(java.util.List<AdvancedMessageFormat.Part> parts)
-
-
Method Detail
-
addChild
public void addChild(AdvancedMessageFormat.Part part)
-
newSection
public void newSection()
-
write
public void write(java.lang.StringBuffer sb, java.util.Map<java.lang.String,java.lang.Object> params)
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
public boolean isGenerated(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-