exip
Alpha 0.5.4
|
Initialization functions for the EXIPSchema object. More...
#include "errorHandle.h"
#include "procTypes.h"
#include "dynamicArray.h"
#include "memManagement.h"
Go to the source code of this file.
Typedefs | |
typedef enum InitSchemaType | InitSchemaType |
Enumerations | |
enum | InitSchemaType { INIT_SCHEMA_SCHEMA_LESS_MODE = 0, INIT_SCHEMA_BUILD_IN_TYPES = 1, INIT_SCHEMA_SCHEMA_ENABLED = 2 } |
Functions | |
errorCode | generateBuiltInTypesGrammars (EXIPSchema *schema) |
Generate a Schema-informed Type and TypeEmpty Grammars for all built-in XML Schema Types. More... | |
errorCode | createBuiltInTypesDefinitions (SimpleTypeTable *simpleTypeTable, AllocList *memList) |
Populate initial simple type array with the build-in simple types. More... | |
errorCode | initSchema (EXIPSchema *schema, InitSchemaType initializationType) |
Initialize a EXIPSchema object. More... | |
Definition in file initSchemaInstance.h.
typedef enum InitSchemaType InitSchemaType |
Definition at line 41 of file initSchemaInstance.h.
enum InitSchemaType |
Enumerator | |
---|---|
INIT_SCHEMA_SCHEMA_LESS_MODE |
Only the string tables and the SchemaGrammarTable are used. |
INIT_SCHEMA_BUILD_IN_TYPES |
When the value of the "schemaId" element is empty, no user defined schema information is used for processing the EXI body; however, the built-in XML schema types are available for use in the EXI body. |
INIT_SCHEMA_SCHEMA_ENABLED |
Full schema information with schema-informed grammars. |
Definition at line 27 of file initSchemaInstance.h.
errorCode createBuiltInTypesDefinitions | ( | SimpleTypeTable * | simpleTypeTable, |
AllocList * | memList | ||
) |
[in,out] | simpleTypeTable | Dynamic array storing the simple types definitions |
[in,out] | memList | memory allocations |
Definition at line 205 of file initSchemaInstance.c.
errorCode generateBuiltInTypesGrammars | ( | EXIPSchema * | schema) |
It is used by generateSchemaInformedGrammars() and when the value of the "schemaId" element is empty, no user defined schema information is used for processing the EXI body; however, the built-in XML schema types are available for use in the EXI body.
[in,out] | schema | schema for which the grammars are generated |
Add the grammar to the schema grammar table
Definition at line 79 of file initSchemaInstance.c.
errorCode initSchema | ( | EXIPSchema * | schema, |
InitSchemaType | initializationType | ||
) |
Generate all build in Schema-informed Element and Type Grammars when not in schema-less mode. It is also used during grammar generation.
[in,out] | schema | a resulting EXIPSchema container |
[in] | initializationType | one of INIT_SCHEMA_SCHEMA_LESS_MODE, INIT_SCHEMA_BUILD_IN_TYPES or INIT_SCHEMA_SCHEMA_ENABLED |
Definition at line 34 of file initSchemaInstance.c.