Class DiscardUnboundContentModelElementImpl
- java.lang.Object
-
- org.springframework.extensions.surf.extensibility.impl.ModelElementImpl
-
- org.springframework.extensions.surf.extensibility.impl.DiscardUnboundContentModelElementImpl
-
- All Implemented Interfaces:
ContentModelElement,ExtensibilityModelElement
public class DiscardUnboundContentModelElementImpl extends ModelElementImpl implements ContentModelElement
A
ContentModelElementthat 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 Modifier and Type Field Description static java.lang.StringTYPE
-
Constructor Summary
Constructors Constructor Description DiscardUnboundContentModelElementImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringflushContent()Regardless of whatever has been written to theExtensibilityContentobject this method will always return the empty String to ensure that the unbounded content is "discarded".ExtensibilityContentgetNextContentBufferElement()This always returns the sameDefaultExtensibilityContentImplthat is associated with the current instance.java.lang.StringgetType()-
Methods inherited from class org.springframework.extensions.surf.extensibility.impl.ModelElementImpl
equals, getDirectiveName, getId, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.extensions.surf.extensibility.ExtensibilityModelElement
getDirectiveName, getId
-
-
-
-
Field Detail
-
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNextContentBufferElement
public ExtensibilityContent getNextContentBufferElement()
This always returns the same
DefaultExtensibilityContentImplthat is associated with the current instance.- Specified by:
getNextContentBufferElementin interfaceContentModelElement- Returns:
- An
ExtensibilityContentobject to write to.
-
flushContent
public java.lang.String 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
public java.lang.String getType()
- Specified by:
getTypein interfaceExtensibilityModelElement
-
-