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 the node
Throws
Exception the exception

Public Methods

public static UniqueValue fromJson (JsonParser parser)

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

public String getDescription ()

Gets the description.

Returns
  • the description.

public String getLabel ()

Gets the label.

Returns
  • the label.

public Symbol getSymbol ()

Gets the symbol.

Returns
  • the symbol used to display the value.

public Object[] getValue ()

Gets the unique value.

Returns
  • an object array which constructs a unique value

public void setDescription (String description)

Sets the description.

Parameters
description the description to set.

public void setLabel (String label)

Sets the label.

Parameters
label the label to set.

public void setSymbol (Symbol symbol)

Sets the symbol.

Parameters
symbol the symbol used to display the value.

public void setValue (Object[] value)

Sets the unique value.

Parameters
value the value to set.

public String toJson (String delimiter)

Converts to a JSON string.

Parameters
delimiter the delimiter
Returns
  • a JSON string
Throws
Exception the exception