@Immutable public final class SParagraph extends Object implements SSubsectionContent
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SParagraphContent> |
getContent() |
com.io7m.jfunctional.OptionType<SID> |
getID() |
com.io7m.jfunctional.OptionType<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() |
public static SParagraph paragraph(SNonEmptyList<SParagraphContent> content)
content
- The paragraph content.public static SParagraph paragraphID(SID id, SNonEmptyList<SParagraphContent> content)
id
- The IDcontent
- The paragraph content.public static SParagraph paragraphTyped(String type, SNonEmptyList<SParagraphContent> content)
type
- The type attributecontent
- The paragraph content.public static SParagraph paragraphTypedID(String type, SID id, SNonEmptyList<SParagraphContent> content)
type
- The type attributeid
- The IDcontent
- The paragraph content.public SNonEmptyList<SParagraphContent> getContent()
public com.io7m.jfunctional.OptionType<SID> getID()
public com.io7m.jfunctional.OptionType<String> getType()
public <A> A subsectionContentAccept(SSubsectionContentVisitor<A> v) throws Exception
SSubsectionContent
subsectionContentAccept
in interface SSubsectionContent
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises and Exception
Copyright © 2017 <code@io7m.com> http://io7m.com