com.esri.core.map.popup
Class PopupFormatValue

java.lang.Object
  extended by 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

Constructor Summary
PopupFormatValue()
           
 
Method Summary
abstract  String formattedValue(Object value)
          Formats a given object into a string.
static PopupFormatValue fromJson(org.codehaus.jackson.JsonParser parser)
          Constructs a PopupFormatValue object from its JSON representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupFormatValue

public PopupFormatValue()
Method Detail

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.