AGSCodedValueDomain Class Reference


Description

Instances of this class represent a coded-value domain. Coded-value domains specify a valid set of values for an attribute. For example, Airport features may have a category attribute that can only have "international", "domestic", or "military" values.

Since:
1.0
Inheritance diagram for AGSCodedValueDomain:
AGSDomain <AGSCoding>

List of all members.

Public Member Functions

(void) - decodeWithJSON:
(NSDictionary *) - encodeToJSON
(id) - initWithJSON:

Static Public Member Functions

(id) + domainWithJSON:parentField:

Properties

NSArray * codedValues
NSString * name

Member Function Documentation

- (void) decodeWithJSON: (NSDictionary *)  json   [optional, inherited]

Decode object from JSON representation.

Parameters:
json The JSON representation of the object to be decoded.
Since:
1.0
+ (id) domainWithJSON: (NSDictionary *)  json
parentField: (AGSField *)  parentField 

Initialize an AGSDomain with JSON representation and a parent field. The parent field is important in cases where properties are inherited from the parent field.

Parameters:
json The JSON representation of a domain.
parentField AGSField corresponding to one of AGSFeatureLayer's fields.
Returns:
A new, autoreleased, domain.
Since:
1.0
- (NSDictionary *) encodeToJSON   [optional, inherited]

Encode and return JSON representation for object.

Returns:
JSON representation of object.
Since:
1.0
- (id) initWithJSON: (NSDictionary *)  json   [optional, inherited]

Initialize and return object from JSON representation.

Parameters:
json The JSON representation of the object to be created.
Returns:
Object decoded from JSON representation.
Since:
1.0

Property Documentation

- (NSArray*) codedValues [read, retain]

The valid set of values permitted by this domain. This property is an array of AGSCodedValue objects.

Since:
1.0
- (NSString*) name [read, retain, inherited]

Name of the domain.

Since:
1.0