Click or drag to resize

SerializableEntity Class

This is preliminary documentation and is subject to change.

Represents an entity that can be loaded from or serialized into JSON.
Inheritance Hierarchy
SystemObject
  WikiClientLibrary.WikibaseSerializableEntity

Namespace: WikiClientLibrary.Wikibase
Assembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class SerializableEntity : IEntity

The SerializableEntity type exposes the following members.

Constructors
 NameDescription
Public methodSerializableEntityInitializes a new instance of the SerializableEntity class
Top
Properties
 NameDescription
Public propertyAliasesGets the aliases of the entity.
Public propertyClaimsGets the claims of the entity.
Public propertyDataType For property entity, gets the data type of the property.
Public propertyDescriptionsGets the descriptions of the entity.
Public propertyId Id of the entity.
Public propertyLabelsGets the labels (aka. names) of the entity.
Public propertySiteLinksGets the sitelinks of the entity.
Public propertyTypeWikibase entity type.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberLoad(IEntity) Creates a new instance of SerializableEntity from an existing IEntity instance.
Public methodStatic memberLoad(JsonObject) Creates a new instance of SerializableEntity from JsonObject.
Public methodStatic memberLoad(Stream) Loads exactly 1 SerializableEntity from the Stream.
Public methodStatic memberLoad(String) Loads exactly 1 SerializableEntity from the specified file.
Public methodStatic memberLoadAll(Stream) Synchronously enumerates a JSON array of the serialized Wikibase entities contained in the specified stream.
Public methodStatic memberLoadAll(String) Synchronously enumerates a JSON array of the serialized Wikibase entities contained in the specified stream.
Public methodStatic memberLoadAllAsync Asynchronously enumerates a JSON array of the serialized Wikibase entities contained in the specified stream.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberParse Creates a new instance of SerializableEntity from JSON string.
Public methodStatic memberParseAll Enumerates all the entities from JSON array of serialized entities contained in the string.
Public methodToJsonObject Serializes the entity into JSON.
Public methodToJsonString Serializes the entity into compact JSON string.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteTo Writes the serialized entity into Stream.
Top
Remarks
When working with JSON dump of Wikibase items, this class may provide some facility.
See Also