@@ -32,6 +32,34 @@ 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+
3563 public virtual void Visit ( IIpProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
3664 {
3765 }
@@ -78,52 +106,72 @@ public virtual void Visit(IStringProperty type, PropertyInfo propertyInfo, Elast
78106
79107 public void Visit ( IProperty type , PropertyInfo propertyInfo , ElasticsearchPropertyAttributeBase attribute )
80108 {
81- if ( type is INestedProperty nestedType )
82- Visit ( nestedType , propertyInfo , attribute ) ;
83-
84- if ( type is IObjectProperty objectType )
85- Visit ( objectType , propertyInfo , attribute ) ;
86-
87- if ( type is IBinaryProperty binaryType )
88- Visit ( binaryType , propertyInfo , attribute ) ;
89-
90- if ( type is IBooleanProperty booleanType )
91- Visit ( booleanType , propertyInfo , attribute ) ;
92-
93- if ( type is IDateProperty dateType )
94- Visit ( dateType , propertyInfo , attribute ) ;
95-
96- if ( type is INumberProperty numberType )
97- Visit ( numberType , propertyInfo , attribute ) ;
98-
99- if ( type is ITextProperty textType )
100- Visit ( textType , propertyInfo , attribute ) ;
101-
102- if ( type is IKeywordProperty keywordType )
103- Visit ( keywordType , propertyInfo , attribute ) ;
104-
105- #pragma warning disable 618
106- if ( type is IAttachmentProperty attachmentType )
107- Visit ( attachmentType , propertyInfo , attribute ) ;
108- #pragma warning restore 618
109-
110- if ( type is IGeoShapeProperty geoShapeType )
111- Visit ( geoShapeType , propertyInfo , attribute ) ;
112-
113- if ( type is IGeoPointProperty geoPointType )
114- Visit ( geoPointType , propertyInfo , attribute ) ;
115-
116- if ( type is ICompletionProperty completionType )
117- Visit ( completionType , propertyInfo , attribute ) ;
118-
119- if ( type is IIpProperty ipType )
120- Visit ( ipType , propertyInfo , attribute ) ;
121-
122- if ( type is IMurmur3HashProperty murmurType )
123- Visit ( murmurType , propertyInfo , attribute ) ;
124-
125- if ( type is ITokenCountProperty tokenCountType )
126- Visit ( tokenCountType , propertyInfo , attribute ) ;
109+ switch ( type )
110+ {
111+ case INestedProperty nestedType :
112+ Visit ( nestedType , propertyInfo , attribute ) ;
113+ break ;
114+ case IObjectProperty objectType :
115+ Visit ( objectType , propertyInfo , attribute ) ;
116+ break ;
117+ case IBinaryProperty binaryType :
118+ Visit ( binaryType , propertyInfo , attribute ) ;
119+ break ;
120+ case IBooleanProperty booleanType :
121+ Visit ( booleanType , propertyInfo , attribute ) ;
122+ break ;
123+ case IDateProperty dateType :
124+ Visit ( dateType , propertyInfo , attribute ) ;
125+ break ;
126+ case INumberProperty numberType :
127+ Visit ( numberType , propertyInfo , attribute ) ;
128+ break ;
129+ case ITextProperty textType :
130+ Visit ( textType , propertyInfo , attribute ) ;
131+ break ;
132+ case IKeywordProperty keywordType :
133+ Visit ( keywordType , propertyInfo , attribute ) ;
134+ break ;
135+ case IGeoShapeProperty geoShapeType :
136+ Visit ( geoShapeType , propertyInfo , attribute ) ;
137+ break ;
138+ case IGeoPointProperty geoPointType :
139+ Visit ( geoPointType , propertyInfo , attribute ) ;
140+ break ;
141+ case ICompletionProperty completionType :
142+ Visit ( completionType , propertyInfo , attribute ) ;
143+ break ;
144+ case IIpProperty ipType :
145+ Visit ( ipType , propertyInfo , attribute ) ;
146+ break ;
147+ case IMurmur3HashProperty murmurType :
148+ Visit ( murmurType , propertyInfo , attribute ) ;
149+ break ;
150+ case ITokenCountProperty tokenCountType :
151+ Visit ( tokenCountType , propertyInfo , attribute ) ;
152+ break ;
153+ case IPercolatorProperty percolatorType :
154+ Visit ( percolatorType , propertyInfo , attribute ) ;
155+ break ;
156+ case IIntegerRangeProperty integerRangeType :
157+ Visit ( integerRangeType , propertyInfo , attribute ) ;
158+ break ;
159+ case ILongRangeProperty longRangeType :
160+ Visit ( longRangeType , propertyInfo , attribute ) ;
161+ break ;
162+ case IDoubleRangeProperty doubleRangeType :
163+ Visit ( doubleRangeType , propertyInfo , attribute ) ;
164+ break ;
165+ case IFloatRangeProperty floatRangeType :
166+ Visit ( floatRangeType , propertyInfo , attribute ) ;
167+ break ;
168+ case IDateRangeProperty dateRangeType :
169+ Visit ( dateRangeType , propertyInfo , attribute ) ;
170+ break ;
171+ case IIpRangeProperty ipRangeType :
172+ Visit ( ipRangeType , propertyInfo , attribute ) ;
173+ break ;
174+ }
127175 }
128176 }
129177}
0 commit comments