public abstract class

PopupFormatValue

extends Object
java.lang.Object
   ↳ com.esri.core.map.popup.PopupFormatValue
Known Direct Subclasses

Class Overview

The PopupFormatValue class is an abstract class for popup value formats such as numbers or dates.

See also:

Summary

Public Constructors
PopupFormatValue()
Public Methods
abstract String formattedValue(Object value)
Formats a given object into a string.
static PopupFormatValue fromJson(JsonParser parser)
Constructs a PopupFormatValue object from its JSON representation.
static PopupNumberFormatValue getDefaultNumericFormatter()
static PopupNumberFormatValue getDefaultObjectIDFormatter()
String toJson()
Serializes a PopupFormatValue object into a JSON String.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PopupFormatValue ()

Public Methods

public abstract String formattedValue (Object value)

Formats a given object into a string.

Parameters
value Object: The value to be formatted
Returns
String A formatted String value of the Object.
Throws
ParseException An exception that occurred during formatting of the value.

public static PopupFormatValue fromJson (JsonParser parser)

Constructs a PopupFormatValue object from its JSON representation.

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

public static PopupNumberFormatValue getDefaultNumericFormatter ()

public static PopupNumberFormatValue getDefaultObjectIDFormatter ()

public String toJson ()

Serializes a PopupFormatValue object into a JSON String.

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