@@ -32,6 +32,38 @@ public virtual void Visit(ITokenCountProperty type, PropertyInfo propertyInfo, E
3232 {
3333 }
3434
35+ public void Visit ( IPercolatorProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
36+ {
37+ }
38+
39+ public void Visit ( IIntegerRangeProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
40+ {
41+ }
42+
43+ public void Visit ( IFloatRangeProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
44+ {
45+ }
46+
47+ public void Visit ( ILongRangeProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
48+ {
49+ }
50+
51+ public void Visit ( IDoubleRangeProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
52+ {
53+ }
54+
55+ public void Visit ( IDateRangeProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
56+ {
57+ }
58+
59+ public void Visit ( IIpRangeProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
60+ {
61+ }
62+
63+ public void Visit ( IJoinProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
64+ {
65+ }
66+
3567 public virtual void Visit ( IIpProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
3668 {
3769 }
@@ -66,47 +98,75 @@ public virtual void Visit(IKeywordProperty type, PropertyInfo propertyInfo, Elas
6698
6799 public void Visit ( IProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
68100 {
69- if ( type is INestedProperty nestedType )
70- Visit ( nestedType , propertyInfo , attribute ) ;
71-
72- if ( type is IObjectProperty objectType )
73- Visit ( objectType , propertyInfo , attribute ) ;
74-
75- if ( type is IBinaryProperty binaryType )
76- Visit ( binaryType , propertyInfo , attribute ) ;
77-
78- if ( type is IBooleanProperty booleanType )
79- Visit ( booleanType , propertyInfo , attribute ) ;
80-
81- if ( type is IDateProperty dateType )
82- Visit ( dateType , propertyInfo , attribute ) ;
83-
84- if ( type is INumberProperty numberType )
85- Visit ( numberType , propertyInfo , attribute ) ;
86-
87- if ( type is ITextProperty textType )
88- Visit ( textType , propertyInfo , attribute ) ;
89-
90- if ( type is IKeywordProperty keywordType )
91- Visit ( keywordType , propertyInfo , attribute ) ;
92-
93- if ( type is IGeoShapeProperty geoShapeType )
94- Visit ( geoShapeType , propertyInfo , attribute ) ;
95-
96- if ( type is IGeoPointProperty geoPointType )
97- Visit ( geoPointType , propertyInfo , attribute ) ;
98-
99- if ( type is ICompletionProperty completionType )
100- Visit ( completionType , propertyInfo , attribute ) ;
101-
102- if ( type is IIpProperty ipType )
103- Visit ( ipType , propertyInfo , attribute ) ;
104-
105- if ( type is IMurmur3HashProperty murmurType )
106- Visit ( murmurType , propertyInfo , attribute ) ;
107-
108- if ( type is ITokenCountProperty tokenCountType )
109- Visit ( tokenCountType , propertyInfo , attribute ) ;
101+ switch ( type )
102+ {
103+ case INestedProperty nestedType :
104+ Visit ( nestedType , propertyInfo , attribute ) ;
105+ break ;
106+ case IObjectProperty objectType :
107+ Visit ( objectType , propertyInfo , attribute ) ;
108+ break ;
109+ case IBinaryProperty binaryType :
110+ Visit ( binaryType , propertyInfo , attribute ) ;
111+ break ;
112+ case IBooleanProperty booleanType :
113+ Visit ( booleanType , propertyInfo , attribute ) ;
114+ break ;
115+ case IDateProperty dateType :
116+ Visit ( dateType , propertyInfo , attribute ) ;
117+ break ;
118+ case INumberProperty numberType :
119+ Visit ( numberType , propertyInfo , attribute ) ;
120+ break ;
121+ case ITextProperty textType :
122+ Visit ( textType , propertyInfo , attribute ) ;
123+ break ;
124+ case IKeywordProperty keywordType :
125+ Visit ( keywordType , propertyInfo , attribute ) ;
126+ break ;
127+ case IGeoShapeProperty geoShapeType :
128+ Visit ( geoShapeType , propertyInfo , attribute ) ;
129+ break ;
130+ case IGeoPointProperty geoPointType :
131+ Visit ( geoPointType , propertyInfo , attribute ) ;
132+ break ;
133+ case ICompletionProperty completionType :
134+ Visit ( completionType , propertyInfo , attribute ) ;
135+ break ;
136+ case IIpProperty ipType :
137+ Visit ( ipType , propertyInfo , attribute ) ;
138+ break ;
139+ case IMurmur3HashProperty murmurType :
140+ Visit ( murmurType , propertyInfo , attribute ) ;
141+ break ;
142+ case ITokenCountProperty tokenCountType :
143+ Visit ( tokenCountType , propertyInfo , attribute ) ;
144+ break ;
145+ case IPercolatorProperty percolatorType :
146+ Visit ( percolatorType , propertyInfo , attribute ) ;
147+ break ;
148+ case IJoinProperty joinType :
149+ Visit ( joinType , propertyInfo , attribute ) ;
150+ break ;
151+ case IIntegerRangeProperty integerRangeType :
152+ Visit ( integerRangeType , propertyInfo , attribute ) ;
153+ break ;
154+ case ILongRangeProperty longRangeType :
155+ Visit ( longRangeType , propertyInfo , attribute ) ;
156+ break ;
157+ case IDoubleRangeProperty doubleRangeType :
158+ Visit ( doubleRangeType , propertyInfo , attribute ) ;
159+ break ;
160+ case IFloatRangeProperty floatRangeType :
161+ Visit ( floatRangeType , propertyInfo , attribute ) ;
162+ break ;
163+ case IDateRangeProperty dateRangeType :
164+ Visit ( dateRangeType , propertyInfo , attribute ) ;
165+ break ;
166+ case IIpRangeProperty ipRangeType :
167+ Visit ( ipRangeType , propertyInfo , attribute ) ;
168+ break ;
169+ }
110170 }
111171 }
112172}
0 commit comments