Skip to content

Commit 1d9f40a

Browse files
committed
XML comments
1 parent 95e5aa7 commit 1d9f40a

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

RomanticWeb/Mapping/Attributes/PredicateMappingAttribute.cs

+12
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,25 @@
33

44
namespace RomanticWeb.Mapping.Attributes
55
{
6+
/// <summary>
7+
/// Base class for mapping an RDF predicate
8+
/// </summary>
69
public abstract class PredicateMappingAttribute : TermMappingAttribute
710
{
11+
/// <summary>
12+
/// Initializes a new instance of the <see cref="PredicateMappingAttribute"/> class.
13+
/// </summary>
14+
/// <param name="prefix">The term prefix.</param>
15+
/// <param name="term">The term name.</param>
816
protected PredicateMappingAttribute(string prefix, string term)
917
: base(prefix, term)
1018
{
1119
}
1220

21+
/// <summary>
22+
/// Initializes a new instance of the <see cref="PredicateMappingAttribute"/> class.
23+
/// </summary>
24+
/// <param name="termUri">The term URI.</param>
1325
protected PredicateMappingAttribute(string termUri)
1426
: base(termUri)
1527
{

RomanticWeb/Mapping/Fluent/DictionaryMap.cs

+10-6
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ public ITermPart<IDictionaryMap> Term
3232
}
3333
}
3434

35-
/// <summary>
36-
/// Gets the dictionary key predicate map part
37-
/// </summary>
35+
/// <inheritdoc />
3836
public ITermPart<IDictionaryMap> KeyPredicate
3937
{
4038
get
@@ -43,9 +41,7 @@ public ITermPart<IDictionaryMap> KeyPredicate
4341
}
4442
}
4543

46-
/// <summary>
47-
/// Gets the dictionary value predicate map part
48-
/// </summary>
44+
/// <inheritdoc />
4945
public ITermPart<IDictionaryMap> ValuePredicate
5046
{
5147
get
@@ -54,12 +50,14 @@ public ITermPart<IDictionaryMap> ValuePredicate
5450
}
5551
}
5652

53+
/// <inheritdoc />
5754
public IDictionaryMap ConvertKeysWith<TConverter>() where TConverter : INodeConverter
5855
{
5956
_keyMap.ConverterType = typeof(TConverter);
6057
return this;
6158
}
6259

60+
/// <inheritdoc />
6361
public IDictionaryMap ConvertValuesWith<TConverter>() where TConverter : INodeConverter
6462
{
6563
_valueMap.ConverterType = typeof(TConverter);
@@ -77,6 +75,9 @@ public override IPropertyMappingProvider Accept(IFluentMapsVisitor fluentMapsVis
7775
/// </summary>
7876
public class ValueMap : TermMap
7977
{
78+
/// <summary>
79+
/// Gets or sets the type of the converter.
80+
/// </summary>
8081
public Type ConverterType { [return: AllowNull] get; set; }
8182

8283
/// <summary>
@@ -93,6 +94,9 @@ public IPredicateMappingProvider Accept(IFluentMapsVisitor fluentMapsVisitor)
9394
/// </summary>
9495
public class KeyMap : TermMap
9596
{
97+
/// <summary>
98+
/// Gets or sets the type of the converter.
99+
/// </summary>
96100
public Type ConverterType { [return: AllowNull] get; set; }
97101

98102
/// <summary>

RomanticWeb/Mapping/Fluent/IDictionaryMap.cs

+6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ public interface IDictionaryMap
2020
/// </summary>
2121
ITermPart<IDictionaryMap> ValuePredicate { get; }
2222

23+
/// <summary>
24+
/// Sets the converter type for dictionary keys
25+
/// </summary>
2326
IDictionaryMap ConvertKeysWith<TConverter>() where TConverter : INodeConverter;
2427

28+
/// <summary>
29+
/// Sets the converter type for dictionary values
30+
/// </summary>
2531
IDictionaryMap ConvertValuesWith<TConverter>() where TConverter : INodeConverter;
2632
}
2733
}

RomanticWeb/Mapping/Providers/IPredicateMappingProvider.cs

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace RomanticWeb.Mapping.Providers
44
{
5+
/// <summary>
6+
/// A mapping provider, which provides a predicate mapping
7+
/// </summary>
58
public interface IPredicateMappingProvider : ITermMappingProvider
69
{
710
/// <summary> Gets or sets the type of the converter.</summary>

0 commit comments

Comments
 (0)