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.

Since:
1.0

Constructor Summary
UniqueValue()
          The Constructor.
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueValue

public UniqueValue()
The Constructor.

Since:
1.0

UniqueValue

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

Parameters:
node - the node
Throws:
Exception - the exception
Since:
1.0
Method Detail

getValue

public Object[] getValue()
Gets the unique value.

Returns:
an object array which constructs a unique value
Since:
1.0

setValue

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

Parameters:
value - the value to set.
Since:
1.0

getLabel

public String getLabel()
Gets the label.

Returns:
the label.
Since:
1.0

setLabel

public void setLabel(String label)
Sets the label.

Parameters:
label - the label to set.
Since:
1.0

getDescription

public String getDescription()
Gets the description.

Returns:
the description.
Since:
1.0

setDescription

public void setDescription(String description)
Sets the description.

Parameters:
description - the description to set.
Since:
1.0

getSymbol

public Symbol getSymbol()
Gets the symbol.

Returns:
the symbol used to display the value.
Since:
1.0

setSymbol

public void setSymbol(Symbol symbol)
Sets the symbol.

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

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 - the exception
Since:
1.0

toJson

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

Parameters:
delimiter - the delimiter
Returns:
a JSON string
Throws:
Exception - the exception
Since:
1.0


Copyright © 2010. All Rights Reserved.