public class

UniqueValue

extends Object
java.lang.Object
   ↳ com.esri.core.renderer.UniqueValue

Class Overview

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

Summary

Public Constructors
UniqueValue()
The Constructor.
UniqueValue(JsonNode node)
Initializes UniqueValue from a Json node object.
Public Methods
static UniqueValue fromJson(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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UniqueValue ()

The Constructor.

public UniqueValue (JsonNode node)

Initializes UniqueValue from a Json node object.

Parameters
node JsonNode: the node
Throws
Exception the exception

Public Methods

public static UniqueValue fromJson (JsonParser parser)

Decodes a unique value from its JSON representation.

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

public String getDescription ()

Gets the description.

Returns
String the description.

public String getLabel ()

Gets the label.

Returns
String the label.

public Symbol getSymbol ()

Gets the symbol.

Returns
Symbol the symbol used to display the value.

public Object[] getValue ()

Gets the unique value.

Returns
Object[] an object array which constructs a unique value

public void setDescription (String description)

Sets the description.

Parameters
description String: the description to set.

public void setLabel (String label)

Sets the label.

Parameters
label String: the label to set.

public void setSymbol (Symbol symbol)

Sets the symbol.

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

public void setValue (Object[] value)

Sets the unique value.

Parameters
value Object: the value to set.

public String toJson (String delimiter)

Converts to a JSON string.

Parameters
delimiter String: the delimiter
Returns
String a JSON string
Throws
Exception the exception