public WikiComponent(IWikiData rawData, WikiComponentType componentType, Node startNode, Node endNode) { RawData = rawData; ComponentType = componentType; StartNode = startNode; EndNode = endNode; _children = new List <IWikiComponent>(); }
public ArticleContainer(IWikiData rawData, IWikiArticle wikiArticle, Node startNode, Node endNode) : base(rawData, WikiComponentType.Article, startNode, endNode) { Content = wikiArticle; }
public ArticleContainer CreateArticleContainer(IWikiData rawData, IWikiArticle article, Node startNode, Node endNode) { return(new ArticleContainer(rawData, article, startNode, endNode)); }
public ImageContainer CreateImageContainer(IWikiData rawData, IWikiImage image, WikiComponentType componentType, Node startNode, Node endNode) { return(new ImageContainer(rawData, image, componentType, startNode, endNode)); }
public WikiComponent CreateComponent(IWikiData rawData, WikiComponentType componentType, Node startNode, Node endNode) { return(new WikiComponent(rawData, componentType, startNode, endNode)); }
public ImageContainer(IWikiData rawData, IWikiImage wikiImage, WikiComponentType componentType, Node startNode, Node endNode) : base(rawData, componentType, startNode, endNode) { Content = wikiImage; }