Click or drag to resize

SerializableEntity Class

This is preliminary documentation and is subject to change.

Represents a 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.8.0-int.8+f07259cca53448109bd542f6a3e53c54ddd48d58
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(JObject) Creates a new instance of SerializableEntity from JObject.
Public methodStatic memberLoad(JsonReader) Loads 1 SerializableEntity from JSON reader.
Public methodStatic memberLoad(String) Loads 1 SerializableEntity from the specified file.
Public methodStatic memberLoad(TextReader) Loads 1 SerializableEntity from text reader.
Public methodStatic memberLoadAll(JsonReader) Enumerates all the entities from JSON array of serialized contained in the JSON reader.
Public methodStatic memberLoadAll(String) Creates a new instance of SerializableEntity from JSON contained in the file.
Public methodStatic memberLoadAll(TextReader) Enumerates all the entities from JSON array of serialized contained in the JSON reader.
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 methodToJObject 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(JsonWriter) Writes the serialized entity into JsonWriter.
Public methodWriteTo(TextWriter) Writes the serialized entity into TextWriter.
Top
Remarks
When working with JSON dump of Wikibase items, this class may provide some facility.
See Also