public class MediaObjectList extends ResponseData
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <objectList> <object> <backendId>22200878</backendId> <confidence>0.09512127523092495</confidence> <mediaObjectId>9210176875192639934</mediaObjectId> <mediaType>PHOTO</mediaType> <objectId>epmYdqmEBSGrkUcPpLULsxFkEnXxSdWAGhYMtXCXZLSxrzEeQPAndGTgnYlIMCBY</objectId> <rank>137692118</rank> <serviceId>4</serviceId> <status>CANDIDATE</status> <objectType>KEYWORD</objectType> <value>nvRETdSITOrtlnxSXOrCrAKEfjPsIGqTXHujCRyVFmoUbKfRIPqFcQwoZMvMTBqX</value> <visibility>GROUP</visibility> <userId>7428430399435218888</userId> </object> </objectList>
MediaObject
Constructor and Description |
---|
MediaObjectList() |
Modifier and Type | Method and Description |
---|---|
void |
addMediaObject(MediaObject mediaObject)
Note: calling this method will clear the list's result info if any is present
|
void |
addMediaObjects(MediaObjectList mediaObjects)
add the media object list to this media object list, empty list is ignored
Note: calling this method will clear the list's result info if any is present
|
MediaObject |
getMediaObject(java.lang.String mediaObjectId) |
java.util.List<java.lang.String> |
getMediaObjectIds() |
static MediaObjectList |
getMediaObjectList(java.util.List<? extends MediaObject> objects,
ResultInfo resultInfo) |
static MediaObjectList |
getMediaObjectListFromKeywords(java.util.List<java.lang.String> keywords)
Parse given keywords given in following format:
|
java.util.List<MediaObject> |
getMediaObjects() |
ResultInfo |
getResultInfo()
Default data groups: result_info
|
static boolean |
isEmpty(MediaObjectList list) |
static boolean |
isValid(MediaObjectList list) |
void |
setResultInfo(ResultInfo resultInfo) |
getDataClasses
public MediaObjectList()
public java.util.List<MediaObject> getMediaObjects()
addMediaObject(MediaObject)
,
addMediaObjects(MediaObjectList)
public void addMediaObject(MediaObject mediaObject)
mediaObject
- getMediaObjects()
public void addMediaObjects(MediaObjectList mediaObjects)
mediaObjects
- getMediaObjects()
public MediaObject getMediaObject(java.lang.String mediaObjectId)
mediaObjectId
- non-null idpublic java.util.List<java.lang.String> getMediaObjectIds()
public static boolean isEmpty(MediaObjectList list)
list
- public static MediaObjectList getMediaObjectList(java.util.List<? extends MediaObject> objects, ResultInfo resultInfo)
objects
- resultInfo
- public static MediaObjectList getMediaObjectListFromKeywords(java.util.List<java.lang.String> keywords)
Parse given keywords given in following format:
keyword:confidence:backendId,keyword:confidence:backendId,...
keyword is required, confidence and backendId are optional.
keywords
- public static boolean isValid(MediaObjectList list)
list
- can be nullpublic ResultInfo getResultInfo()
setResultInfo(ResultInfo)
public void setResultInfo(ResultInfo resultInfo)
resultInfo
- the resultInfo to setgetResultInfo()
Copyright © 2015 Tampere University of Technology, Pori Department.