C# 클래스 Sdl.Web.Common.Mapping.SchemaSemantics

Represents the semantics of a Schema: Prefix and Entity.
Deserialized from JSON in schemas.json.
파일 보기 프로젝트 열기: sdl/dxa-web-application-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
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