All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.contentful.java.cda.rich.CDARichList Maven / Gradle / Ivy

There is a newer version: 9.1.0
Show newest version
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