Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 
 newPropertyDeserializer ()
 Returns a Deserializer that can deserialize Property objects.
 
 newSiteLinkDeserializer ()
 Returns a Deserializer that can deserialize SiteLink objects.
 
 newStatementListDeserializer ()
 Returns a Deserializer that can deserialize StatementList objects.
 
 newStatementDeserializer ()
 Returns a Deserializer that can deserialize Statement objects.
 
 newReferencesDeserializer ()
 Returns a Deserializer that can deserialize ReferenceList objects.
 
 newReferenceDeserializer ()
 Returns a Deserializer that can deserialize Reference objects.
 
 newSnakListDeserializer ()
 Returns a Deserializer that can deserialize SnakList objects.
 
 newSnakDeserializer ()
 Returns a Deserializer that can deserialize Snak objects.
 
 newEntityIdDeserializer ()
 Returns a Deserializer that can deserialize EntityId objects.
 
 newTermDeserializer ()
 Returns a Deserializer that can deserialize Term objects.
 
 newTermListDeserializer ()
 Returns a Deserializer that can deserialize TermList objects.
 
 newAliasGroupListDeserializer ()
 Returns a Deserializer that can deserialize AliasGroupList objects.
 

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

◆ newEntityDeserializer()

Wikibase\DataModel\Deserializers\DeserializerFactory::newEntityDeserializer ( )
Returns
DispatchingDeserializer 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.

◆ newItemDeserializer()

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

Returns a Deserializer that can deserialize Item objects.

Since
2.1

◆ newPropertyDeserializer()

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

Returns a Deserializer that can deserialize Property objects.

Since
2.1

◆ newReferenceDeserializer()

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

Returns a Deserializer that can deserialize Reference objects.

◆ newReferencesDeserializer()

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

Returns a Deserializer that can deserialize ReferenceList objects.

◆ newSiteLinkDeserializer()

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

Returns a Deserializer that can deserialize SiteLink objects.

◆ newSnakDeserializer()

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

Returns a Deserializer that can deserialize Snak objects.

◆ newSnakListDeserializer()

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

Returns a Deserializer that can deserialize SnakList objects.

Since
1.4

◆ newStatementDeserializer()

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

Returns a Deserializer that can deserialize Statement objects.

Since
1.4

◆ newStatementListDeserializer()

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

Returns a Deserializer that can deserialize StatementList objects.

Since
1.4

◆ newTermDeserializer()

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

Returns a Deserializer that can deserialize Term objects.

Since
1.5

◆ newTermListDeserializer()

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

Returns a Deserializer that can deserialize TermList objects.

Since
1.5

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: