public class ContentModelFormatterParticipant extends Object implements IFormatterParticipant
FormatElementCategory of a given element.
This participant is enabled when 'xml.format.grammarAwareFormatting' setting is set to true.
| Constructor and Description |
|---|
ContentModelFormatterParticipant(ContentModelManager contentModelManager) |
| Modifier and Type | Method and Description |
|---|---|
FormatElementCategory |
getFormatElementCategory(DOMElement element,
XMLFormattingConstraints parentConstraints,
SharedSettings sharedSettings)
Returns the format element category for the given DOM element and null
otherwise.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatAttributeValuepublic ContentModelFormatterParticipant(ContentModelManager contentModelManager)
public FormatElementCategory getFormatElementCategory(DOMElement element, XMLFormattingConstraints parentConstraints, SharedSettings sharedSettings)
IFormatterParticipantgetFormatElementCategory in interface IFormatterParticipantelement - the DOM element.parentConstraints - the parent constraints.sharedSettings - the shared settings.Copyright © 2022. All rights reserved.