Class XhtmlStringIndexer
Implementation of softlink parsing for XhtmlString.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.SpecializedProperties
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IPropertySoftLinkIndexer))]
public class XhtmlStringIndexer : IPropertySoftLinkIndexer<XhtmlString>, IPropertySoftLinkIndexer
Constructors
XhtmlStringIndexer(IPermanentLinkMapper)
Declaration
[Obsolete("Use alternative constructor")]
public XhtmlStringIndexer(IPermanentLinkMapper permanentLinkMapper)
Parameters
Type | Name | Description |
---|---|---|
IPermanentLinkMapper | permanentLinkMapper |
XhtmlStringIndexer(IPermanentLinkMapper, SoftLinkFactory)
Initializes a new instance of the XhtmlStringIndexer class.
Declaration
public XhtmlStringIndexer(IPermanentLinkMapper permanentLinkMapper, SoftLinkFactory softLinkFactory)
Parameters
Type | Name | Description |
---|---|---|
IPermanentLinkMapper | permanentLinkMapper | |
SoftLinkFactory | softLinkFactory |
Methods
HandleContentFragmentsWithLinks(HashSet<SoftLink>, IEnumerable<ContentFragment>, IContent)
Adds softlinks from contentFragments
.
Declaration
protected virtual void HandleContentFragmentsWithLinks(HashSet<SoftLink> softLinks, IEnumerable<ContentFragment> contentFragments, IContent owner)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.HashSet<SoftLink> | softLinks | |
System.Collections.Generic.IEnumerable<ContentFragment> | contentFragments | |
IContent | owner |
HandleElementsWithLinks(HashSet<SoftLink>, IEnumerable<ElementFragment>, IContent)
Adds softlinks from elements
.
Declaration
protected virtual void HandleElementsWithLinks(HashSet<SoftLink> softLinks, IEnumerable<ElementFragment> elements, IContent owner)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.HashSet<SoftLink> | softLinks | |
System.Collections.Generic.IEnumerable<ElementFragment> | elements | |
IContent | owner |
ResolveReferences(XhtmlString, IContent)
Returns SoftLink references for all linked content items.
Declaration
public virtual IEnumerable<SoftLink> ResolveReferences(XhtmlString xHtmlString, IContent owner)
Parameters
Type | Name | Description |
---|---|---|
XhtmlString | xHtmlString | |
IContent | owner |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SoftLink> |