Package org.apache.fop.util.text
Class GlyphNameFieldPart
- java.lang.Object
-
- org.apache.fop.util.text.GlyphNameFieldPart
-
- All Implemented Interfaces:
AdvancedMessageFormat.Part
public class GlyphNameFieldPart extends java.lang.Object implements AdvancedMessageFormat.Part
Function formatting a character to a glyph name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGlyphNameFieldPart.FactoryFactory forGlyphNameFieldPart.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringfieldName
-
Constructor Summary
Constructors Constructor Description GlyphNameFieldPart(java.lang.String fieldName)Creates a new glyph name field part
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringgetGlyphName(java.lang.Object obj)booleanisGenerated(java.util.Map params)Indicates whether there is any content that is generated by this message part.java.lang.StringtoString()voidwrite(java.lang.StringBuffer sb, java.util.Map params)Writes the formatted part to a string buffer.
-
-
-
Method Detail
-
isGenerated
public boolean isGenerated(java.util.Map params)
Indicates 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
-
getGlyphName
private java.lang.String getGlyphName(java.lang.Object obj)
-
write
public void write(java.lang.StringBuffer sb, java.util.Map params)Writes the formatted part to a string buffer.- Specified by:
writein interfaceAdvancedMessageFormat.Part- Parameters:
sb- the target string bufferparams- the parameters to work with
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-