public interface IFormatterParticipant
| Modifier and Type | Method and Description |
|---|---|
default boolean |
formatAttributeValue(String name,
String valueWithoutQuote,
Character quote,
DOMAttr attr,
XMLBuilder xml)
Format the given attribute value.
|
default FormatElementCategory |
getFormatElementCategory(DOMElement element,
XMLFormattingConstraints parentConstraints,
SharedSettings sharedSettings)
Returns the format element category for the given DOM element and null
otherwise.
|
default boolean formatAttributeValue(String name, String valueWithoutQuote, Character quote, DOMAttr attr, XMLBuilder xml)
The formatter must take care of to generate attribute value with quote.
name - the attribute name.valueWithoutQuote - the attribute value without quote.quote - the quote and null otherwise. null quote means that
the formatter must not generate a quote in the xml
builder.attr - the DOM attribute and null otherwise.xml - the XML builder.default FormatElementCategory getFormatElementCategory(DOMElement element, XMLFormattingConstraints parentConstraints, SharedSettings sharedSettings)
element - the DOM element.parentConstraints - the parent constraints.sharedSettings - the shared settings.Copyright © 2022. All rights reserved.