
com.contentful.java.cda.rich.CDARichList 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;
/**
* Parent class for all list classes
*/
public class CDARichList extends CDARichBlock implements Serializable {
final CharSequence decoration;
/**
* Create a list of the given symbols per nesting level
*
* @param decoration a symbol to be added for differentiation. Can be [1,A,a,I,i] for
* prefixing each node with an arabic number (1., 2., …), a capitalized letter
* (A., B., …), a lowercase letter (a., b., …) or roman numerals in capital
* (I, II, …) or non capitalized form (i, ii, …). Alternatively unordered
* symbols can be used: `*` for bullets, `-` for dashes and `⭐` for stars etc.
*/
public CDARichList(CharSequence decoration) {
this.decoration = decoration;
}
/**
* @return decoration for this list.
*/
public CharSequence getDecoration() {
return decoration;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy