// PUBLIC METHODS /////////////////////////////////////////////////// #region Factory Methods public static DomReadOnlyLinks Create(Links links) { Contract.Requires(links != null); var domReadOnlyLinks = new DomReadOnlyLinks(links); return(domReadOnlyLinks); }
public static DomReadOnlyLinks Create(IGetLinks getLinks) { Contract.Requires(getLinks != null && getLinks.Links != null); var links = getLinks.Links; var domReadOnlyLinks = new DomReadOnlyLinks(links); return(domReadOnlyLinks); }
private static void ParseDocumentLinks(DomDocument domDocument, Document apiDocument) { Contract.Requires(domDocument != null); Contract.Requires(apiDocument != null); if (apiDocument.HasLinks() == false) { return; } domDocument.CreateAndAddNode(() => DomReadOnlyLinks.Create(apiDocument)); }