Copyright© 2008-2026 Sitevision AB, all rights reserved.
@Requireable(value="ContentFormat") public enum ContentFormat extends Enum<ContentFormat>
This enum defines the supported content formats that can be used when creating or updating text modules. The format determines how the raw content string is parsed and converted into rich text elements.
| Enum Constant and Description |
|---|
MARKDOWN
Markdown format with GitHub Flavored Markdown (GFM) extensions.
|
| Modifier and Type | Method and Description |
|---|---|
static ContentFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Requireable(value="ContentFormat.MARKDOWN") public static final ContentFormat MARKDOWN
Supports standard Markdown syntax including:
Example Markdown content:
# Main Heading
This is a paragraph with **bold** and *italic* text.
- List item 1
- List item 2
You can find more information on the [Sitevision Developer website](https://developer.sitevision.se).
| Column 1 | Column 2 |
|----------|----------|
| Cell 1 | Cell 2 |
public static ContentFormat[] values()
for (ContentFormat c : ContentFormat.values()) System.out.println(c);
public static ContentFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullSitevision - Content Management Made Easy
Sitevision is an advanced Java enterprise portal product that implements Java Content Repository (JSR 283).
Copyright© 2008-2026 Sitevision AB, all rights reserved.