C# Class Sdl.Web.Common.Mapping.SchemaSemantics

Represents the semantics of a Schema: Prefix and Entity.
Deserialized from JSON in schemas.json.
Exibir arquivo Open project: sdl/dxa-web-application-dotnet Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
SchemaSemantics ( string entity ) : System
SchemaSemantics ( string prefix, string entity ) : System

Method Details

Equals() public method

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.
return bool

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int

Initialize() public method

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.
return void

SchemaSemantics() public method

Initializes a new empty instance of the SchemaSemantics class.
Used by JSON deserialer.
public SchemaSemantics ( ) : System
return System

SchemaSemantics() public method

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 ).
return System

ToString() public method

Provides a string representation of the object.
public ToString ( ) : string
return string