@Immutable public final class SText extends Object implements SParagraphContent, SLinkContent, SListItemContent, SFootnoteContent, STableCellContent
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<A> A |
footnoteContentAccept(SFootnoteContentVisitor<A> v)
Accept a footnote content visitor.
|
String |
getText() |
int |
hashCode() |
<A> A |
linkContentAccept(SLinkContentVisitor<A> v)
Accept a link content visitor.
|
<A> A |
listItemContentAccept(SListItemContentVisitor<A> v)
Accept a list item content visitor.
|
<A> A |
paragraphContentAccept(SParagraphContentVisitor<A> v)
Accept a paragraph content visitor.
|
<A> A |
tableCellContentAccept(STableCellContentVisitor<A> v)
Accept a table cell content visitor.
|
static SText |
text(String text)
Construct a new text element.
|
@Nonnull public static SText text(@Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
text - The textcom.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 linkContentAccept(@Nonnull SLinkContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SLinkContentlinkContentAccept in interface SLinkContentA - 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 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