@Immutable public final class SParagraph extends Object implements SSubsectionContent
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SParagraphContent> |
getContent() |
com.io7m.jaux.functional.Option<SID> |
getID() |
com.io7m.jaux.functional.Option<String> |
getType() |
int |
hashCode() |
static SParagraph |
paragraph(SNonEmptyList<SParagraphContent> content)
Construct a new paragraph.
|
static SParagraph |
paragraphID(SID id,
SNonEmptyList<SParagraphContent> content)
Construct a new paragraph with an ID.
|
static SParagraph |
paragraphTyped(String type,
SNonEmptyList<SParagraphContent> content)
Construct a new paragraph with a type attribute.
|
static SParagraph |
paragraphTypedID(String type,
SID id,
SNonEmptyList<SParagraphContent> content)
Construct a new paragraph with an ID and type attribute.
|
<A> A |
subsectionContentAccept(SSubsectionContentVisitor<A> v)
Accept a section content visitor.
|
String |
toString() |
@Nonnull public static SParagraph paragraph(@Nonnull SNonEmptyList<SParagraphContent> content) throws com.io7m.jaux.Constraints.ConstraintError
content - The paragraph content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SParagraph paragraphID(@Nonnull SID id, @Nonnull SNonEmptyList<SParagraphContent> content) throws com.io7m.jaux.Constraints.ConstraintError
id - The IDcontent - The paragraph content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SParagraph paragraphTyped(@Nonnull String type, @Nonnull SNonEmptyList<SParagraphContent> content) throws com.io7m.jaux.Constraints.ConstraintError
type - The type attributecontent - The paragraph content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SParagraph paragraphTypedID(@Nonnull String type, @Nonnull SID id, @Nonnull SNonEmptyList<SParagraphContent> content) throws com.io7m.jaux.Constraints.ConstraintError
type - The type attributeid - The IDcontent - The paragraph content.com.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SParagraphContent> getContent()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
public <A> A subsectionContentAccept(@Nonnull SSubsectionContentVisitor<A> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SSubsectionContentsubsectionContentAccept in interface SSubsectionContentA - 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. All rights reserved.