com.esri.core.map.popup
Class PopupFormatValue
java.lang.Object
com.esri.core.map.popup.PopupFormatValue
- Direct Known Subclasses:
- PopupDateFormatValue, PopupNumberFormatValue
public abstract class PopupFormatValue
- extends Object
The PopupFormatValue class is an abstract class for popup value formats such as numbers or dates.
- See Also:
PopupDateFormatValue
,
PopupNumberFormatValue
PopupFormatValue
public PopupFormatValue()
formattedValue
public abstract String formattedValue(Object value)
throws ParseException
- Formats a given object into a string.
- Parameters:
value
- The value to be formatted
- Returns:
- A formatted String value of the Object.
- Throws:
ParseException
- An exception that occurred during formatting of the value.
fromJson
public static PopupFormatValue fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
- Constructs a PopupFormatValue object from its JSON representation.
- Parameters:
parser
- A JSON parser object whose position is set at the "format" node.
- Returns:
- A
PopupFormatValue
object representing the media.
- Throws:
Exception
- An exception that occurred during parsing.
Copyright © 2012. All Rights Reserved.