public class AttributeNameFormatter extends AttributeFormatter
Constructor and Description |
---|
AttributeNameFormatter() |
AttributeNameFormatter(String _before,
String _after) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
format(Attribute<?> att,
AttributeValue val,
StringBuilder buf)
Format an attribute and its value as a string.
|
protected StringBuilder |
format(Attribute<?> att,
StringBuilder buf) |
StringBuilder |
format(AttributeValueFormatter formatter,
Attribute<?> att,
List<? extends AttributeValue> val,
StringBuilder buf)
Format an attribute and its list of values as a string.
|
format
protected StringBuilder format(Attribute<?> att, StringBuilder buf)
public StringBuilder format(AttributeValueFormatter formatter, Attribute<?> att, List<? extends AttributeValue> val, StringBuilder buf)
ValueListFormatter
formatter
- The formatter must call
format
on this object to format values from the value list.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.public StringBuilder format(Attribute<?> att, AttributeValue val, StringBuilder buf)
AttributeValueFormatter
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.