Package org.apache.fop.utils.text
Class AdvancedMessageFormat.CompositePart
- java.lang.Object
-
- org.apache.fop.utils.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 booleanconditionalprivate booleanhasSectionsprotected java.util.List<AdvancedMessageFormat.Part>parts
-
Constructor Summary
Constructors Modifier Constructor Description CompositePart(boolean conditional)privateCompositePart(java.util.List<AdvancedMessageFormat.Part> parts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(AdvancedMessageFormat.Part part)booleanisGenerated(java.util.Map<java.lang.String,java.lang.Object> params)Indicates whether there is any content that is generated by this message part.voidnewSection()java.lang.StringtoString()voidwrite(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.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
public boolean isGenerated(java.util.Map<java.lang.String,java.lang.Object> params)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-