Was this page helpful?

XUriMap<T> Class

    Table of Contents
    public class XUriMap<T>
    Namespace: MindTouch.Dream
    Assembly: mindtouch.dream
    Type Hierarchy:
    • object
      • XUriMap<T>
    Provides an MindTouch.Dream.XUri map to match the best parent uri.

    Remarks

    This map is a counterpart to MindTouch.Dream.XUriChildMap<T>, which matches all child uris, instead of the best parent. Parent/Child relationships are determined by scheme/hostpot/path similarity.

    Generic Parameters

    Parameter T

    Type of object that is associated with each MindTouch.Dream.XUri entry
    Constraints:
    none

    Members

    Constructors

    Visibility Description
    Public XUriMap()

    Properties

    Visibility Description
    Public Count Total number of Uri's in map.
    Public Keys Enumerable of all Uri's in map.
    Public this[XUri key] Retrieve a reference object by it's Uri.

    Methods

    Visibility Description
    Public Clear() Clear map of all entries.
    Public TryGetValue(XUri key, out T value) Try to get the best matching parent uri.
    Public TryGetValue(XUri key, out T value, out int similarity) Try to get the best matching parent uri.
    Public Add(XUri key, T value) Add a new entry to the map.
    Public Remove(XUri key) Remove an entry from the map by its key Uri.
    Public GetValues(XUri uri) Get all parent matches for a key.
    Public ToString() (Inherited from Object)
    Public Equals(object obj) (Inherited from Object)
    Public GetHashCode() (Inherited from Object)
    Public GetType() (Inherited from Object)
    Protected MemberwiseClone() (Inherited from Object)
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by