public class ReferenceAttributeFormatter extends DefaultAttributeFormatter
Modifier and Type | Field and Description |
---|---|
protected String |
afterValue |
protected String |
beforeValue |
protected StringBuilder |
itemBuffer |
printAfter, printAttributeName, printBefore, printBeforeValue, tempBuffer, valueFormat
Constructor and Description |
---|
ReferenceAttributeFormatter(String _beforeValue,
String _afterValue,
ListFormatter _formatter) |
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
protected String beforeValue
protected String afterValue
protected StringBuilder itemBuffer
public ReferenceAttributeFormatter(String _beforeValue, String _afterValue, ListFormatter _formatter)
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.