mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Add MarkupType overload to MarkupTypeSchema.Build
This commit is contained in:
@@ -52,7 +52,26 @@ namespace Microsoft.Iris.Markup
|
||||
return new EffectClassTypeSchema(owner, name);
|
||||
if (markupTypeDefinition == DataTypeSchema.Type)
|
||||
return new MarkupDataTypeSchema(owner, name);
|
||||
return markupTypeDefinition == DataQuerySchema.Type ? new MarkupDataQuerySchema(owner, name) : null;
|
||||
if (markupTypeDefinition == DataQuerySchema.Type)
|
||||
return new MarkupDataQuerySchema(owner, name);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static MarkupTypeSchema Build(MarkupType markupType, MarkupLoadResult owner, string name)
|
||||
{
|
||||
if (markupType == MarkupType.Class)
|
||||
return new ClassTypeSchema(owner, name);
|
||||
if (markupType == MarkupType.UI)
|
||||
return new UIClassTypeSchema(owner, name);
|
||||
if (markupType == MarkupType.Effect)
|
||||
return new EffectClassTypeSchema(owner, name);
|
||||
if (markupType == MarkupType.DataType)
|
||||
return new MarkupDataTypeSchema(owner, name);
|
||||
if (markupType == MarkupType.DataQuery)
|
||||
return new MarkupDataQuerySchema(owner, name);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public MarkupTypeSchema(MarkupLoadResult owner, string name)
|
||||
|
||||
Reference in New Issue
Block a user