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

General Semantic Mapping Class which reads schema mapping from json files on disk
파일 보기 프로젝트 열기: sdl/dxa-web-application-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
GetPrefix ( string vocab, Localization loc ) : string

Gets prefix for semantic vocabulary.

GetQualifiedTypeName ( string typeName, string vocab = null ) : string

Gets a qualified (semantic) type name consisting of vocabulary ID and (local) type name.

GetQualifiedTypeName ( string typeName, string prefix, Localization localization ) : string

Gets a qualified (semantic) type name consisting of vocabulary ID and (local) type name.

GetSchema ( string id, Localization loc ) : SemanticSchema

Gets a semantic schema by id.

GetVocabulary ( string prefix, Localization loc ) : string

Gets semantic vocabulary by prefix.

메소드 상세

GetPrefix() 공개 정적인 메소드

Gets prefix for semantic vocabulary.
public static GetPrefix ( string vocab, Localization loc ) : string
vocab string Vocabulary name
loc Localization The localization
리턴 string

GetQualifiedTypeName() 공개 정적인 메소드

Gets a qualified (semantic) type name consisting of vocabulary ID and (local) type name.
public static GetQualifiedTypeName ( string typeName, string vocab = null ) : string
typeName string The (local) type name.
vocab string The vocabulary ID or null for the default/core vocabulary.
리턴 string

GetQualifiedTypeName() 공개 정적인 메소드

Gets a qualified (semantic) type name consisting of vocabulary ID and (local) type name.
public static GetQualifiedTypeName ( string typeName, string prefix, Localization localization ) : string
typeName string The (local) type name.
prefix string The vocabulary prefix.
localization Localization The context Localization.
리턴 string

GetSchema() 공개 정적인 메소드

Gets a semantic schema by id.
public static GetSchema ( string id, Localization loc ) : SemanticSchema
id string The schema ID
loc Localization The localization
리턴 SemanticSchema

GetVocabulary() 공개 정적인 메소드

Gets semantic vocabulary by prefix.
public static GetVocabulary ( string prefix, Localization loc ) : string
prefix string The prefix
loc Localization The localization
리턴 string