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.
| Constructor and Description |
|---|
DiscardUnboundContentModelElementImpl() |
| Modifier and Type | Method and Description |
|---|---|
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". |
ExtensibilityContent |
getNextContentBufferElement()
This always returns the same
DefaultExtensibilityContentImpl that is associated with the
current instance. |
String |
getType() |
equals, getDirectiveName, getId, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDirectiveName, getIdpublic static final String TYPE
public DiscardUnboundContentModelElementImpl()
public ExtensibilityContent getNextContentBufferElement()
This always returns the same DefaultExtensibilityContentImpl that is associated with the
current instance.
getNextContentBufferElement in interface ContentModelElementExtensibilityContent object to write to.public 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".
flushContent in interface ContentModelElementpublic String getType()
getType in interface ExtensibilityModelElementCopyright © 2005–2019 Alfresco Software. All rights reserved.