public class

PopupMediaInfo

extends Object
java.lang.Object
   ↳ com.esri.core.map.popup.PopupMediaInfo

Class Overview

The PopupMediaInfo class represents information about a media in the popup.

Summary

Nested Classes
enum PopupMediaInfo.MEDIA_TYPE Enumeration for popup media types. 
Public Constructors
PopupMediaInfo()
Public Methods
boolean equals(Object obj)
static PopupMediaInfo fromJson(JsonParser parser)
Constructs a PopupMediaInfo object from its JSON representation.
String getCaption()
Returns the popup media's caption.
String getTitle()
Returns the popup media's title.
PopupMediaInfo.MEDIA_TYPE getType()
Returns the popup media's type.
PopupMediaValue getValue()
Returns the popup media's value.
int hashCode()
void setCaption(String caption)
Sets the popup media's caption.
void setTitle(String title)
Sets the popup media's title.
void setType(PopupMediaInfo.MEDIA_TYPE type)
Sets the popup media's type.
void setValue(PopupMediaValue value)
Sets the popup media's value.
String toJson()
Serializes a PopupMediaInfo object into a JSON String.
String toString()
Returns string representation of the class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PopupMediaInfo ()

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static PopupMediaInfo fromJson (JsonParser parser)

Constructs a PopupMediaInfo object from its JSON representation.

Parameters
parser JsonParser: A JSON parser object whose position is set at the "mediaInfos" node.
Returns
PopupMediaInfo A PopupMediaInfo object.
Throws
Exception An exception that occurred during parsing.

public String getCaption ()

Returns the popup media's caption.

Returns
String caption

public String getTitle ()

Returns the popup media's title.

Returns
String title

public PopupMediaInfo.MEDIA_TYPE getType ()

Returns the popup media's type.

Returns
PopupMediaInfo.MEDIA_TYPE type

public PopupMediaValue getValue ()

Returns the popup media's value.

Returns
PopupMediaValue value

public int hashCode ()

Returns
int

public void setCaption (String caption)

Sets the popup media's caption.

Parameters
caption String: The media's caption

public void setTitle (String title)

Sets the popup media's title.

Parameters
title String: The media's title

public void setType (PopupMediaInfo.MEDIA_TYPE type)

Sets the popup media's type.

Parameters
type PopupMediaInfo.MEDIA_TYPE: The media's type

public void setValue (PopupMediaValue value)

Sets the popup media's value.

Parameters
value PopupMediaValue: The media's value

public String toJson ()

Serializes a PopupMediaInfo object into a JSON String.

Returns
String a JSON String representing the PopupMediaInfo.
Throws
Exception An exception thrown the object cannot be serialized into JSON string.

public String toString ()

Returns string representation of the class. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String