<TRCSchemaData > Protocol Reference

TRCSchemaData is abstract data structure, used to represent schema and validate it's values. More...

Inheritance diagram for <TRCSchemaData >:

Instance Methods

(void) - enumerate:withEnumerator:
 Walk through all object structure and call appropriate methods from TRCSchemaDataEnumerator protocol in enumerator. More...
 
(id) - modify:withModifier:
 Walk through all object structure to replace (transform, convert) some of object's values. More...
 
(void) - cancel
 Cancels current process like enumeration or modifying (see methods above). More...
 
(BOOL) - isCancelled
 Tells if current process is cancelled. More...
 

Detailed Description

TRCSchemaData is abstract data structure, used to represent schema and validate it's values.

Method Documentation

◆ enumerate:withEnumerator:()

- (void TRCSchemaData) enumerate: (id)  object
withEnumerator: (id< TRCSchemaDataEnumerator >)  enumerator 

Walk through all object structure and call appropriate methods from TRCSchemaDataEnumerator protocol in enumerator.

Used by TRCSchema to validate object values

◆ modify:withModifier:()

- (id TRCSchemaData) modify: (id)  object
withModifier: (id< TRCSchemaDataModifier >)  modifier 

Walk through all object structure to replace (transform, convert) some of object's values.

TRCSchemaDataModifier methods used to do that. Used by TRCConverter to convert some values using TRCValueTransformers and TRCObjectMappers.

◆ cancel()

- (void TRCSchemaData) cancel

Cancels current process like enumeration or modifying (see methods above).

Called when enumerator or modifier found some error and wants to cancel process.

◆ isCancelled()

- (BOOL TRCSchemaData) isCancelled

Tells if current process is cancelled.

This method must return YES after cancel method called.