Package org.thymeleaf.engine
Class CDATASection
java.lang.Object
org.thymeleaf.engine.AbstractTemplateEvent
org.thymeleaf.engine.AbstractTextualTemplateEvent
org.thymeleaf.engine.CDATASection
- All Implemented Interfaces:
CharSequence,IEngineTemplateEvent,ICDATASection,ITemplateEvent
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final Stringprivate String(package private) final String(package private) final StringFields inherited from class org.thymeleaf.engine.AbstractTemplateEvent
col, line, templateName -
Constructor Summary
ConstructorsConstructorDescriptionCDATASection(CharSequence content) CDATASection(CharSequence content, String templateName, int line, int col) CDATASection(String prefix, CharSequence content, String suffix) CDATASection(String prefix, CharSequence content, String suffix, String templateName, int line, int col) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept a visitor, implementation ofIModelVisitor.(package private) static CDATASectionasEngineCDATASection(ICDATASection cdataSection) voidbeHandled(ITemplateHandler handler) charcharAt(int index) Returns the whole CDATA Section, including the<![CDATA[...]]>prefix and suffix.Returns the content of the CDATA Section, without the prefix or suffix.intlength()subSequence(int start, int end) toString()voidWrites this event to the specifiedWriter.Methods inherited from class org.thymeleaf.engine.AbstractTextualTemplateEvent
charAtContent, contentSubSequence, getContentLength, getContentText, isInlineable, isWhitespace, writeContentMethods inherited from class org.thymeleaf.engine.AbstractTemplateEvent
getCol, getLine, getTemplateName, hasLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePointsMethods inherited from interface org.thymeleaf.model.ITemplateEvent
getCol, getLine, getTemplateName, hasLocation
-
Field Details
-
CDATA_PREFIX
- See Also:
-
CDATA_SUFFIX
- See Also:
-
prefix
-
suffix
-
computedCDATASectionStr
-
-
Constructor Details
-
CDATASection
CDATASection(CharSequence content) -
CDATASection
CDATASection(String prefix, CharSequence content, String suffix) -
CDATASection
CDATASection(CharSequence content, String templateName, int line, int col) -
CDATASection
CDATASection(String prefix, CharSequence content, String suffix, String templateName, int line, int col)
-
-
Method Details
-
getCDATASection
Description copied from interface:ICDATASectionReturns the whole CDATA Section, including the
<![CDATA[...]]>prefix and suffix.- Specified by:
getCDATASectionin interfaceICDATASection- Returns:
- the CDATA Section.
-
getContent
Description copied from interface:ICDATASectionReturns the content of the CDATA Section, without the prefix or suffix.
- Specified by:
getContentin interfaceICDATASection- Returns:
- the content of the CDATA Section.
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
accept
Description copied from interface:ITemplateEventAccept a visitor, implementation of
IModelVisitor.- Specified by:
acceptin interfaceITemplateEvent- Parameters:
visitor- the visitor.
-
write
Description copied from interface:ITemplateEventWrites this event to the specified
Writer.Template output performed at
OutputTemplateHandleris done by calling these methods at each of the events resulting from template processing.- Specified by:
writein interfaceITemplateEvent- Parameters:
writer- the writer this event should be written to.- Throws:
IOException- if an input/output exception occurs.
-
asEngineCDATASection
-
beHandled
- Specified by:
beHandledin interfaceIEngineTemplateEvent
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classAbstractTextualTemplateEvent
-