WikiLambda
MediaWiki WikiLambda extension
Loading...
Searching...
No Matches
MediaWiki\Extension\WikiLambda\Validation\SchemaFactory Class Reference

Public Member Functions

 parse ( $schemaSpec)
 
 create ( $ZID)
 Creates a SchemaWrapper that validates the normalized form of the provided type.
 

Static Public Member Functions

static getNormalFormFactory ( $loader=null)
 Creates a SchemaFactory for normal-form ZObjects.
 
static getCanonicalFormFactory ( $loader=null)
 Creates a SchemaFactory for canonical-form ZObjects.
 
static getStandAloneFactory ()
 Creates a SchemaFactory for parsing standalone schemata (no external refs).
 

Member Function Documentation

◆ create()

MediaWiki\Extension\WikiLambda\Validation\SchemaFactory::create ( $ZID)

Creates a SchemaWrapper that validates the normalized form of the provided type.

Parameters
string$ZID
Returns
SchemaWrapper|null

◆ getCanonicalFormFactory()

static MediaWiki\Extension\WikiLambda\Validation\SchemaFactory::getCanonicalFormFactory ( $loader = null)
static

Creates a SchemaFactory for canonical-form ZObjects.

Parameters
string | null$loaderWhich loader to use
Returns
SchemaFactory
+ Here is the caller graph for this function:

◆ getNormalFormFactory()

static MediaWiki\Extension\WikiLambda\Validation\SchemaFactory::getNormalFormFactory ( $loader = null)
static

Creates a SchemaFactory for normal-form ZObjects.

Parameters
ISchemaLoader | null$loaderWhich loader to use
Returns
SchemaFactory
+ Here is the caller graph for this function:

◆ getStandAloneFactory()

static MediaWiki\Extension\WikiLambda\Validation\SchemaFactory::getStandAloneFactory ( )
static

Creates a SchemaFactory for parsing standalone schemata (no external refs).

Returns
SchemaFactory

◆ parse()

MediaWiki\Extension\WikiLambda\Validation\SchemaFactory::parse ( $schemaSpec)
Parameters
mixed$schemaSpec
Returns
SchemaWrapper

The documentation for this class was generated from the following file: