|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.opensocial.model.MediaItem.Builder
public static class MediaItem.Builder
A builder that facilitates construction of MediaItem
objects. The final MediaItem
is created by calling the build()
method
Constructor Summary | |
---|---|
MediaItem.Builder(URI url)
|
Method Summary | |
---|---|
MediaItem |
build()
Returns the final constructed MediaItem |
MediaItem.Builder |
mimeType(String mimeType)
Set the mime type of the MediaItem under construction and return this Builder
to allow further construction to be done. |
MediaItem.Builder |
type(MediaItem.Type type)
Set the type of the MediaItem under construction and return this Builder
to allow further construction to be done. |
MediaItem.Builder |
url(URI url)
Set the url of the MediaItem under construction and return this Builder
to allow further construction to be done. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MediaItem.Builder(URI url)
Method Detail |
---|
public MediaItem.Builder mimeType(String mimeType)
MediaItem
under construction and return this Builder
to allow further construction to be done.
mimeType
- the mime type to use for the MediaItem
public MediaItem.Builder type(MediaItem.Type type)
MediaItem
under construction and return this Builder
to allow further construction to be done.
type
- the type to use for the MediaItem
public MediaItem.Builder url(URI url)
MediaItem
under construction and return this Builder
to allow further construction to be done.
url
- the mime type to use for the MediaItem
public MediaItem build()
MediaItem
MediaItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |