C# Класс Sdl.Web.Common.Mapping.SchemaSemantics

Represents the semantics of a Schema: Prefix and Entity.
Deserialized from JSON in schemas.json.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Equals ( object obj ) : bool

Determines whether the specified object is equal to the current SchemaSemantics.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

Initialize ( Sdl.Web.Common.Configuration.Localization localization ) : void

Initializes an existing instance: determines the Vocab property.

SchemaSemantics ( ) : System

Initializes a new empty instance of the SchemaSemantics class.

Used by JSON deserialer.

SchemaSemantics ( string prefix, string entity, Sdl.Web.Common.Configuration.Localization localization ) : System

Initializes a new instance of the SchemaSemantics class.

ToString ( ) : string

Provides a string representation of the object.

Приватные методы

Метод Описание
SchemaSemantics ( string entity ) : System
SchemaSemantics ( string prefix, string entity ) : System

Описание методов

Equals() публичный Метод

Determines whether the specified object is equal to the current SchemaSemantics.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
Результат bool

GetHashCode() публичный Метод

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

Initialize() публичный Метод

Initializes an existing instance: determines the Vocab property.
public Initialize ( Sdl.Web.Common.Configuration.Localization localization ) : void
localization Sdl.Web.Common.Configuration.Localization The context Localization.
Результат void

SchemaSemantics() публичный Метод

Initializes a new empty instance of the SchemaSemantics class.
Used by JSON deserialer.
public SchemaSemantics ( ) : System
Результат System

SchemaSemantics() публичный Метод

Initializes a new instance of the SchemaSemantics class.
public SchemaSemantics ( string prefix, string entity, Sdl.Web.Common.Configuration.Localization localization ) : System
prefix string Vocabulary prefix
entity string Entity name
localization Sdl.Web.Common.Configuration.Localization The context Localization (used to determine ).
Результат System

ToString() публичный Метод

Provides a string representation of the object.
public ToString ( ) : string
Результат string