public class InformationAttributeFormatter extends DefaultAttributeFormatter
printAfter, printAttributeName, printBefore, printBeforeValue, tempBuffer, valueFormat
Constructor and Description |
---|
InformationAttributeFormatter() |
InformationAttributeFormatter(String _printBefore,
String _printAfter,
String _printBeforeValue,
boolean _printAttributeName,
ListFormatter _valueFormat) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
format(Attribute<?> att,
AttributeValue val,
StringBuilder buf)
Format an attribute and its value as a string.
|
format
format
public InformationAttributeFormatter()
public InformationAttributeFormatter(String _printBefore, String _printAfter, String _printBeforeValue, boolean _printAttributeName, ListFormatter _valueFormat)
public StringBuilder format(Attribute<?> att, AttributeValue val, StringBuilder buf)
AttributeValueFormatter
format
in interface AttributeValueFormatter
format
in class DefaultAttributeFormatter
val
- Value of the attribute. May be null
if the attribute is set but
has no value.buf
- String buffer to which the formatted attribute is appended.Copyright © 2001-2013 the JGloss developers. All Rights Reserved.