@Immutable public final class SImage extends Object implements SParagraphContent, SLinkContent, SListItemContent, SFootnoteContent, 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.
|
com.io7m.jaux.functional.Option<Integer> |
getHeight() |
String |
getText() |
com.io7m.jaux.functional.Option<String> |
getType() |
URI |
getURI() |
com.io7m.jaux.functional.Option<Integer> |
getWidth() |
int |
hashCode() |
static SImage |
image(URI uri,
String text)
Construct a image with the given URI.
|
static SImage |
imageHeight(URI uri,
int height,
String text)
Construct a image with the given URI, type attribute, and height.
|
static SImage |
imageTyped(URI uri,
String type,
String text)
Construct a image with the given URI, type attribute.
|
static SImage |
imageTypedHeight(URI uri,
String type,
int height,
String text)
Construct a image with the given URI, type attribute, and height.
|
static SImage |
imageTypedWidth(URI uri,
String type,
int width,
String text)
Construct a image with the given URI, type attribute, and width.
|
static SImage |
imageTypedWidthHeight(URI uri,
String type,
int width,
int height,
String text)
Construct a image with the given URI, type attribute, and width/height.
|
static SImage |
imageWidth(URI uri,
int width,
String text)
Construct a image with the given URI, type attribute, and width.
|
static SImage |
imageWidthHeight(URI uri,
int width,
int height,
String text)
Construct a image with the given URI, type attribute, and width/height.
|
<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.
|
@Nonnull public static SImage image(@Nonnull URI uri, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URItext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageHeight(@Nonnull URI uri, int height, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URIheight - The heighttext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageTyped(@Nonnull URI uri, @Nonnull String type, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URItype - The type attributetext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageTypedHeight(@Nonnull URI uri, @Nonnull String type, int height, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URItype - The type attributeheight - The heighttext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageTypedWidth(@Nonnull URI uri, @Nonnull String type, int width, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URItype - The type attributewidth - The widthtext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageTypedWidthHeight(@Nonnull URI uri, @Nonnull String type, int width, int height, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URItype - The type attributewidth - The widthheight - The heighttext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageWidth(@Nonnull URI uri, int width, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URIwidth - The widthtext - The image textcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SImage imageWidthHeight(@Nonnull URI uri, int width, int height, @Nonnull String text) throws com.io7m.jaux.Constraints.ConstraintError
uri - The URIwidth - The widthheight - The heighttext - The image 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 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 com.io7m.jaux.functional.Option<Integer> getHeight()
@Nonnull public com.io7m.jaux.functional.Option<String> getType()
@Nonnull public com.io7m.jaux.functional.Option<Integer> getWidth()
public <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. All rights reserved.