public interface TemplateContent
Modifier and Type | Interface and Description |
---|---|
static class |
TemplateContent.UniqueContext
The various contexts in which to make a template unique.
|
Modifier and Type | Method and Description |
---|---|
DocumentReference |
getAuthorReference() |
String |
getContent() |
default Set<String> |
getContextEntries() |
default DocumentReference |
getDocumentReference() |
<T> T |
getProperty(String name,
T def)
Return custom property with the provided name and converted (if needed) to the passed default value type.
|
<T> T |
getProperty(String name,
Type type)
Return custom property with the provided name and converted (if needed) to the passed type.
|
org.xwiki.rendering.syntax.Syntax |
getRawSyntax() |
org.xwiki.rendering.syntax.Syntax |
getSourceSyntax() |
default TemplateContent.UniqueContext |
getUnique() |
default boolean |
isAsyncAllowed() |
default boolean |
isAuthorProvided() |
default boolean |
isCacheAllowed() |
String getContent()
org.xwiki.rendering.syntax.Syntax getSourceSyntax()
org.xwiki.rendering.syntax.Syntax getRawSyntax()
RawBlock
, note taken into account if a source
syntax is provided<T> T getProperty(String name, Type type)
T
- the type of the value to returnname
- the name of the propertytype
- the type of the property<T> T getProperty(String name, T def)
T
- the type of the value to returnname
- the name of the propertydef
- the default valueDocumentReference getAuthorReference()
default boolean isAuthorProvided()
default DocumentReference getDocumentReference()
@Unstable default boolean isCacheAllowed()
@Unstable default boolean isAsyncAllowed()
@Unstable default Set<String> getContextEntries()
@Unstable default TemplateContent.UniqueContext getUnique()
Copyright © 2004–2021 XWiki. All rights reserved.