Package com.attribyte.parser.model
Class Image.Builder
java.lang.Object
com.attribyte.parser.model.Image.Builder
- Enclosing class:
Image
Builds an immutable image.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutable image.Gets the alternate text.Gets the credit.intGets the height.getId()Gets the id.getLink()Gets the link.Gets the media type.getTitle()Gets the title.intgetWidth()Gets the width.setAltText(String altText) Sets the alternate text.Sets the credit.setHeight(int height) Sets the height.Sets the id.setMediaType(String mediaType) Sets the media type.Sets the title.setWidth(int width) Sets the width.
-
Method Details
-
getId
Gets the id.- Returns:
- The id.
-
setId
Sets the id.- Parameters:
id- The id.- Returns:
- A self-reference.
-
getLink
Gets the link.- Returns:
- The link.
-
getAltText
Gets the alternate text.- Returns:
- The alternate text.
-
setAltText
Sets the alternate text.- Parameters:
altText- The alternate text.- Returns:
- A self-reference.
-
getTitle
Gets the title.- Returns:
- The title.
-
setTitle
Sets the title.- Parameters:
title- The title.- Returns:
- A self-reference.
-
getCredit
Gets the credit.- Returns:
- The credit.
-
setCredit
Sets the credit.- Parameters:
credit- The cridt.- Returns:
- A self-reference.
-
getWidth
public int getWidth()Gets the width.- Returns:
- The width.
-
setWidth
Sets the width.- Parameters:
width- The width.- Returns:
- A self-reference.
-
getHeight
public int getHeight()Gets the height.- Returns:
- The height.
-
setHeight
Sets the height.- Parameters:
height- The height.- Returns:
- A self-reference.
-
getMediaType
Gets the media type.- Returns:
- The media type.
-
setMediaType
Sets the media type.- Parameters:
mediaType- The media type.- Returns:
- A self-reference.
-
build
Builds an immutable image.- Returns:
- The image.
-