Wikibase
MediaWiki Wikibase extension
Wikibase\DataModel\Deserializers\DeserializerFactory Class Reference

Factory for constructing Deserializer objects that can deserialize WikibaseDataModel objects. More...

Public Member Functions

 __construct (Deserializer $dataValueDeserializer, EntityIdParser $entityIdParser)
 
 newEntityDeserializer ()
 
 newItemDeserializer ()
 Returns a Deserializer that can deserialize Item objects. More...
 
 newPropertyDeserializer ()
 Returns a Deserializer that can deserialize Property objects. More...
 
 newSiteLinkDeserializer ()
 Returns a Deserializer that can deserialize SiteLink objects. More...
 
 newStatementListDeserializer ()
 Returns a Deserializer that can deserialize StatementList objects. More...
 
 newStatementDeserializer ()
 Returns a Deserializer that can deserialize Statement objects. More...
 
 newReferencesDeserializer ()
 Returns a Deserializer that can deserialize ReferenceList objects. More...
 
 newReferenceDeserializer ()
 Returns a Deserializer that can deserialize Reference objects. More...
 
 newSnakListDeserializer ()
 Returns a Deserializer that can deserialize SnakList objects. More...
 
 newSnakDeserializer ()
 Returns a Deserializer that can deserialize Snak objects. More...
 
 newEntityIdDeserializer ()
 Returns a Deserializer that can deserialize EntityId objects. More...
 
 newTermDeserializer ()
 Returns a Deserializer that can deserialize Term objects. More...
 
 newTermListDeserializer ()
 Returns a Deserializer that can deserialize TermList objects. More...
 
 newAliasGroupListDeserializer ()
 Returns a Deserializer that can deserialize AliasGroupList objects. More...
 

Private Attributes

 $dataValueDeserializer
 
 $entityIdParser
 

Detailed Description

Factory for constructing Deserializer objects that can deserialize WikibaseDataModel objects.

Since
0.1
Author
Thomas Pellissier Tanon
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Deserializers\DeserializerFactory::__construct ( Deserializer  $dataValueDeserializer,
EntityIdParser  $entityIdParser 
)
Parameters
Deserializer$dataValueDeserializerdeserializer for DataValue objects
EntityIdParser$entityIdParser

Member Function Documentation

◆ newAliasGroupListDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newAliasGroupListDeserializer ( )

Returns a Deserializer that can deserialize AliasGroupList objects.

Since
1.5
Returns
Deserializer

◆ newEntityDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newEntityDeserializer ( )
Returns
DispatchableDeserializer A deserializer that can only deserialize Item and Property objects, but no other entity types. In contexts with custom entity types other than items and properties this is not what you want. If in doubt, favor a custom DispatchingDeserializer containing the exact entity deserializers you need.

◆ newEntityIdDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newEntityIdDeserializer ( )

Returns a Deserializer that can deserialize EntityId objects.

Returns
Deserializer

◆ newItemDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newItemDeserializer ( )

Returns a Deserializer that can deserialize Item objects.

Since
2.1
Returns
DispatchableDeserializer

◆ newPropertyDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newPropertyDeserializer ( )

Returns a Deserializer that can deserialize Property objects.

Since
2.1
Returns
DispatchableDeserializer

◆ newReferenceDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newReferenceDeserializer ( )

Returns a Deserializer that can deserialize Reference objects.

Returns
Deserializer

◆ newReferencesDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newReferencesDeserializer ( )

Returns a Deserializer that can deserialize ReferenceList objects.

Returns
Deserializer

◆ newSiteLinkDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newSiteLinkDeserializer ( )

Returns a Deserializer that can deserialize SiteLink objects.

Returns
Deserializer

◆ newSnakDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newSnakDeserializer ( )

Returns a Deserializer that can deserialize Snak objects.

Returns
Deserializer

◆ newSnakListDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newSnakListDeserializer ( )

Returns a Deserializer that can deserialize SnakList objects.

Since
1.4
Returns
Deserializer

◆ newStatementDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newStatementDeserializer ( )

Returns a Deserializer that can deserialize Statement objects.

Since
1.4
Returns
DispatchableDeserializer

◆ newStatementListDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newStatementListDeserializer ( )

Returns a Deserializer that can deserialize StatementList objects.

Since
1.4
Returns
Deserializer

◆ newTermDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newTermDeserializer ( )

Returns a Deserializer that can deserialize Term objects.

Since
1.5
Returns
Deserializer

◆ newTermListDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newTermListDeserializer ( )

Returns a Deserializer that can deserialize TermList objects.

Since
1.5
Returns
Deserializer

Member Data Documentation

◆ $dataValueDeserializer

Wikibase\DataModel\Deserializers\DeserializerFactory::$dataValueDeserializer
private

◆ $entityIdParser

Wikibase\DataModel\Deserializers\DeserializerFactory::$entityIdParser
private

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