Package org.apache.fop.util.text
Class HexFieldPart
java.lang.Object
org.apache.fop.util.text.HexFieldPart
- All Implemented Interfaces:
AdvancedMessageFormat.Part
Function formatting a number or character to a hex value.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isGenerated
(Map params) Indicates whether there is any content that is generated by this message part.toString()
void
write
(StringBuffer sb, Map params) Writes the formatted part to a string buffer.
-
Field Details
-
fieldName
-
-
Constructor Details
-
HexFieldPart
Creates a new hex field part- Parameters:
fieldName
- the field name
-
-
Method Details
-
isGenerated
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
-
write
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
-
toString
-