com.esri.core.renderer
Class UniqueValueInfo

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

public final class UniqueValueInfo
extends Object

Class to define a unique value from attributes. A unique value can be based on one to three attributes.


Constructor Summary
UniqueValueInfo(org.codehaus.jackson.JsonNode node)
          Creates a unique value from a JSON node.
UniqueValueInfo(Object[] value, Symbol symbol)
          Creates a unique value.
 
Method Summary
 String getDescription()
          Gets the description for this unique value.
 String getLabel()
          Gets the label for this unique value.
 Symbol getSymbol()
          Gets the symbol associated with this unique value.
 Object[] getValue()
          Gets the values.
 void setValue(Object[] value)
          Sets the values to be used.
 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

UniqueValueInfo

public UniqueValueInfo(Object[] value,
                       Symbol symbol)
Creates a unique value.

Parameters:
value - Array of values.
symbol - The associated symbol.

UniqueValueInfo

public UniqueValueInfo(org.codehaus.jackson.JsonNode node)
                throws Exception
Creates a unique value from a JSON node.

Parameters:
node - The JSON node.
Throws:
Exception
Method Detail

setValue

public void setValue(Object[] value)
Sets the values to be used. Up to three values are allowed.

Parameters:
value - Array of values.

getValue

public Object[] getValue()
Gets the values.

Returns:
An array of values.

getSymbol

public Symbol getSymbol()
Gets the symbol associated with this unique value.

Returns:
The symbol.

getLabel

public String getLabel()
Gets the label for this unique value.

Returns:
The label.

getDescription

public String getDescription()
Gets the description for this unique value.

Returns:
The description.

toJson

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

Returns:
a JSON string
Throws:
Exception


Copyright © 2012. All Rights Reserved.