public class

UniqueValueDefinition

extends ClassificationDefinition
java.lang.Object
   ↳ com.esri.core.renderer.ClassificationDefinition
     ↳ com.esri.core.renderer.UniqueValueDefinition

Class Overview

This class defines a unique value renderer when requesting a renderer from a dynamic map service's generateDataClasses REST endpoint.

A unique value renderer is defined by up to three fields that when taken together define a unique value for a given feature. The user can specify an optional base symbol and color ramp to be used by the renderer. A field delimiter can also be defined, this defaults to ','. This delimiter is used to separate the values when more than one field is used to define a unique value.

Summary

[Expand]
Inherited Fields
From class com.esri.core.renderer.ClassificationDefinition
Public Constructors
UniqueValueDefinition(List<String> uniqueValueFields)
Instantiates a new unique value definition.
UniqueValueDefinition(JsonNode node)
Instantiates a new unique value definition from the given JSON node.
Public Methods
char getFieldDelimiter()
Gets the field delimiter.
ArrayList<String> getUniqueValueFields()
Gets the unique value fields.
void setFieldDelimiter(char fieldDelimiter)
Sets the field delimiter.
String toString()
Protected Methods
void toJson(JsonGenerator node)
This method is used by toJson() to turn this instance into a JSON string.
[Expand]
Inherited Methods
From class com.esri.core.renderer.ClassificationDefinition
From class java.lang.Object

Public Constructors

public UniqueValueDefinition (List<String> uniqueValueFields)

Instantiates a new unique value definition.

Parameters
uniqueValueFields List: the unique value fields

public UniqueValueDefinition (JsonNode node)

Instantiates a new unique value definition from the given JSON node.

Parameters
node JsonNode: the node defining a unique value definition

Public Methods

public char getFieldDelimiter ()

Gets the field delimiter.

Returns
char the field delimiter

public ArrayList<String> getUniqueValueFields ()

Gets the unique value fields.

Returns
ArrayList<String> the unique value fields

public void setFieldDelimiter (char fieldDelimiter)

Sets the field delimiter.

Parameters
fieldDelimiter char: the new field delimiter

public String toString ()

Returns
String

Protected Methods

protected void toJson (JsonGenerator node)

This method is used by toJson() to turn this instance into a JSON string.

This method should be overridden in subclasses to add their class data to the given JSON node. Note that this base class method should be called by the override.

Parameters
node JsonGenerator: the node to add fields to
Throws
IOException
JsonGenerationException
Exception