Show / Hide Table of Contents

    Class ContentCatalog

    A collection of content elements.

    Inheritance
    System.Object
    Element
    ContentCatalog
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    Element.Id
    Element.Name
    Element.AdditionalProperties
    Element.PropertyChanged
    Element.RaisePropertyChanged(String)
    Element.SetMapping(String, MappingBase)
    Element.GetMapping(String)
    Element.GetMapping<T>(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Elements
    Assembly: Hypar.Elements.dll
    Syntax
    [JsonConverter(typeof(JsonInheritanceConverter), new object[]{"discriminator"})]
    public class ContentCatalog : Element, INotifyPropertyChanged

    Constructors

    ContentCatalog(IList<ContentElement>, IList<Element>, Guid, String)

    Construct a content catalog.

    Declaration
    [JsonConstructor]
    public ContentCatalog(IList<ContentElement> content, IList<Element> referenceConfiguration, Guid id = default(Guid), string name = null)
    Parameters
    Type Name Description
    System.Collections.Generic.IList<ContentElement> content
    System.Collections.Generic.IList<Element> referenceConfiguration
    System.Guid id
    System.String name

    Properties

    Content

    The content elements in this catalog.

    Declaration
    [JsonProperty("Content", Required = Required.Always)]
    [Required]
    public IList<ContentElement> Content { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IList<ContentElement>

    ReferenceConfiguration

    An example arrangement of the elements contained in this catalog.

    Declaration
    [JsonProperty("ReferenceConfiguration", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
    public IList<Element> ReferenceConfiguration { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IList<Element>

    Methods

    FromJson(String)

    Deserialize the give JSON text into the ContentCatalog

    Declaration
    public static ContentCatalog FromJson(string json)
    Parameters
    Type Name Description
    System.String json
    Returns
    Type Description
    ContentCatalog

    ToJson()

    Convert the ContentCatalog into its JSON representation.

    Declaration
    public string ToJson()
    Returns
    Type Description
    System.String

    UseReferenceOrientation()

    Modifies the transforms of the content internal to this catalog to use the orientation of the reference instances that exist.

    Declaration
    public void UseReferenceOrientation()

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    ElementProxyExtensions.Proxy<T>(T, String)
    Identity.AddOverrideIdentity(Element, IOverride)
    Identity.AddOverrideIdentity(Element, String, String, Object)
    Identity.AddOverrideValue(Element, String, Object)
    Identity.OverrideIds<T>(Element, String)
    In This Article
    • Constructors
      • ContentCatalog(IList<ContentElement>, IList<Element>, Guid, String)
    • Properties
      • Content
      • ReferenceConfiguration
    • Methods
      • FromJson(String)
      • ToJson()
      • UseReferenceOrientation()
    • Implements
    • Extension Methods