com.esri.core.renderer
Class UniqueValue

java.lang.Object
  extended by com.esri.core.renderer.UniqueValue

public class UniqueValue
extends Object

Instances of this class represent unique value objects that are used in unique value renderers.


Constructor Summary
UniqueValue()
           
UniqueValue(org.codehaus.jackson.JsonNode node)
          Initializes UniqueValue from a Json node object
 
Method Summary
static UniqueValue fromJson(org.codehaus.jackson.JsonParser parser)
          Decodes a unique value from its JSON representation.
 String getDescription()
          Gets the description.
 String getLabel()
          Gets the label.
 Symbol getSymbol()
          Gets the symbol.
 Object[] getValue()
          Gets the unique value
 void setDescription(String description)
          Sets the description.
 void setLabel(String label)
          Sets the label.
 void setSymbol(Symbol symbol)
          Sets the symbol.
 void setValue(Object[] value)
          Sets the unique value.
 String toJson(String delimiter)
          Converts to a JSON string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueValue

public UniqueValue()

UniqueValue

public UniqueValue(org.codehaus.jackson.JsonNode node)
            throws Exception
Initializes UniqueValue from a Json node object

Throws:
Exception
Method Detail

getValue

public Object[] getValue()
Gets the unique value

Returns:
an object array which constructs a unique value

setValue

public void setValue(Object[] value)
Sets the unique value.

Parameters:
value - the value to set.

getLabel

public String getLabel()
Gets the label.

Returns:
the label.

setLabel

public void setLabel(String label)
Sets the label.

Parameters:
label - the label to set.

getDescription

public String getDescription()
Gets the description.

Returns:
the description.

setDescription

public void setDescription(String description)
Sets the description.

Parameters:
description - the description to set.

getSymbol

public Symbol getSymbol()
Gets the symbol.

Returns:
the symbol used to display the value.

setSymbol

public void setSymbol(Symbol symbol)
Sets the symbol.

Parameters:
symbol - the symbol used to display the value.

fromJson

public static UniqueValue fromJson(org.codehaus.jackson.JsonParser parser)
                            throws Exception
Decodes a unique value from its JSON representation.

Parameters:
parser - the Jackson parser holding the JSON data.
Returns:
the decoded object from JSON representation.
Throws:
Exception

toJson

public String toJson(String delimiter)
              throws Exception
Converts to a JSON string.

Returns:
a JSON string
Throws:
Exception


Copyright © 2012. All Rights Reserved.