Class DiscardUnboundContentModelElementImpl
- All Implemented Interfaces:
ContentModelElement,ExtensibilityModelElement
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRegardless of whatever has been written to theExtensibilityContentobject this method will always return the empty String to ensure that the unbounded content is "discarded".This always returns the sameDefaultExtensibilityContentImplthat is associated with the current instance.getType()Methods inherited from class org.springframework.extensions.surf.extensibility.impl.ModelElementImpl
equals, getDirectiveName, getId, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.extensions.surf.extensibility.ExtensibilityModelElement
getDirectiveName, getId
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
DiscardUnboundContentModelElementImpl
public DiscardUnboundContentModelElementImpl()
-
-
Method Details
-
getNextContentBufferElement
This always returns the same
DefaultExtensibilityContentImplthat is associated with the current instance.- Specified by:
getNextContentBufferElementin interfaceContentModelElement- Returns:
- An
ExtensibilityContentobject to write to.
-
flushContent
Regardless of whatever has been written to the
ExtensibilityContentobject this method will always return the empty String to ensure that the unbounded content is "discarded".- Specified by:
flushContentin interfaceContentModelElement- Returns:
- This always returns an empty String.
-
getType
- Specified by:
getTypein interfaceExtensibilityModelElement
-