@Immutable public final class SListOrdered extends Object implements SListItemContent, SFootnoteContent, SParagraphContent, SFormalItemContent, STableCellContent
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<A> A |
footnoteContentAccept(SFootnoteContentVisitor<A> v)
Accept a footnote content visitor.
|
<A> A |
formalItemContentAccept(SFormalItemContentVisitor<A> v)
Accept a formal item content visitor.
|
SNonEmptyList<SListItem> |
getItems() |
com.io7m.jaux.functional.Option<String> |
getType() |
int |
hashCode() |
static SListOrdered |
list(SNonEmptyList<SListItem> content)
Construct a new list.
|
<A> A |
listItemContentAccept(SListItemContentVisitor<A> v)
Accept a list item content visitor.
|
static SListOrdered |
listTyped(String type,
SNonEmptyList<SListItem> content)
Construct a new list item with a type attribute.
|
<A> A |
paragraphContentAccept(SParagraphContentVisitor<A> v)
Accept a paragraph content visitor.
|
<A> A |
tableCellContentAccept(STableCellContentVisitor<A> v)
Accept a table cell content visitor.
|
@Nonnull public static SListOrdered list(@Nonnull SNonEmptyList<SListItem> content) throws com.io7m.jaux.Constraints.ConstraintError
content - The list content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SListOrdered listTyped(@Nonnull String type, @Nonnull SNonEmptyList<SListItem> content) throws com.io7m.jaux.Constraints.ConstraintError
type - The type attributecontent - The list content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is nullpublic <A> A footnoteContentAccept(@Nonnull SFootnoteContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SFootnoteContentfootnoteContentAccept in interface SFootnoteContentA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and Exceptionpublic <A> A formalItemContentAccept(@Nonnull SFormalItemContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SFormalItemContentformalItemContentAccept in interface SFormalItemContentA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and Exception@Nonnull public SNonEmptyList<SListItem> getItems()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
public <A> A listItemContentAccept(@Nonnull SListItemContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SListItemContentlistItemContentAccept in interface SListItemContentA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and Exceptionpublic <A> A paragraphContentAccept(@Nonnull SParagraphContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SParagraphContentparagraphContentAccept in interface SParagraphContentA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and Exceptionpublic <A> A tableCellContentAccept(@Nonnull STableCellContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
STableCellContenttableCellContentAccept in interface STableCellContentA - The type of values returned by the visitorv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises a Constraints.ConstraintErrorException - If the visitor raises and ExceptionCopyright © 2014 <code@io7m.com> http://io7m.com