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

Class for deserialized json field semantics. {"Prefix":"s","Entity":"Article","Property":"headline"}
Inheritance: SchemaSemantics
ファイルを表示 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 FieldSemantics.

FieldSemantics ( ) : System

Initializes a new empty instance of the FieldSemantics class.

Used by JSON deserializer.

FieldSemantics ( string prefix, string entity, string property, Localization localization ) : System

Initializes a new instance of the FieldSemantics class.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ToString ( ) : string

Provides a string representation of the object.

Private Methods

Method Description
FieldSemantics ( string entity, string property ) : System
FieldSemantics ( string prefix, string entity, string property ) : System

Method Details

Equals() public method

Determines whether the specified object is equal to the current FieldSemantics.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
return bool

FieldSemantics() public method

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

FieldSemantics() public method

Initializes a new instance of the FieldSemantics class.
public FieldSemantics ( string prefix, string entity, string property, Localization localization ) : System
prefix string Vocabulary prefix
entity string Entity name
property string Semantic property name
localization Localization The context Localization (used to determine the semantic Vocabulary URI).
return System

GetHashCode() public method

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

ToString() public method

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