Class DiscardUnboundContentModelElementImpl

  • All Implemented Interfaces:
    ContentModelElement, ExtensibilityModelElement

    public class DiscardUnboundContentModelElementImpl
    extends ModelElementImpl
    implements ContentModelElement

    A ContentModelElement that despite accepting unbounded content (that is content not defined by an extensibility element) does not actually output it when flushed. This is added to the model during extension processing to ensure that unbounded extension content does not reach the output stream. This is important as the file content order of an extension does not define it's location in the output stream so all content must either be bounded by extensibility directives or will be ignored.

    Author:
    David Draper
    • Constructor Detail

      • DiscardUnboundContentModelElementImpl

        public DiscardUnboundContentModelElementImpl()
    • Method Detail

      • flushContent

        public java.lang.String flushContent()

        Regardless of whatever has been written to the ExtensibilityContent object this method will always return the empty String to ensure that the unbounded content is "discarded".

        Specified by:
        flushContent in interface ContentModelElement
        Returns:
        This always returns an empty String.