
com.contentful.java.cda.rich.CDARichHeading Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Contentful's Content Delivery API.
package com.contentful.java.cda.rich;
import java.io.Serializable;
/**
* Defines a headline of the text.
*
* Can have an arbitrary level assigned, but useful probably between 1 and 6.
*/
public class CDARichHeading extends CDARichBlock implements Serializable {
private final int level;
/**
* Create a heading block, describing a level elements deep nested heading.
*
* @param level a number indicating the level of this heading.
*/
public CDARichHeading(int level) {
this.level = level;
}
/**
* @return the current nesting level of this heading.
*/
public int getLevel() {
return level;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy