Skip to content

Commit 0f974ff

Browse files
committed
Adding additional colors, titles, and links fields for areaServed SmartDataModels
1 parent cc05d94 commit 0f974ff

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

src/main/java/org/computate/frFR/java/EcrireGenClasse.java

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6426,7 +6426,7 @@ public void ecrireClasseCommentaire(JsonObject langueConfig, String siteNom, Str
64266426
String description = field.getString("description");
64276427
String javaType = "JsonObject";
64286428
if("areaServed".equals(fieldName))
6429-
javaType = "Polygon";
6429+
javaType = "Path";
64306430
else if("location".equals(fieldName))
64316431
javaType = "Point";
64326432
else if("string".equals(jsonType))
@@ -6443,6 +6443,41 @@ else if("location".equals(fieldName))
64436443
wSmartDataModel.l(" /**");
64446444
wSmartDataModel.l(" * {@inheritDoc}");
64456445
if("areaServed".equals(fieldName)) {
6446+
wSmartDataModel.l(" ");
6447+
wSmartDataModel.l(" * LocationColor: true");
6448+
wSmartDataModel.l(" * Indexed: true");
6449+
wSmartDataModel.l(" * Stored: true");
6450+
wSmartDataModel.l(" * DisplayName: area served colors");
6451+
wSmartDataModel.l(" * Description: The colors of each areaServed Paths. ");
6452+
wSmartDataModel.l(" */");
6453+
wSmartDataModel.l(" protected void _areaServedColors(List<String> l) {");
6454+
wSmartDataModel.l(" l.add(color);");
6455+
wSmartDataModel.l(" }");
6456+
wSmartDataModel.l();
6457+
wSmartDataModel.l(" /**");
6458+
wSmartDataModel.l(" * {@inheritDoc}");
6459+
wSmartDataModel.l(" * LocationTitle: true");
6460+
wSmartDataModel.l(" * Indexed: true");
6461+
wSmartDataModel.l(" * Stored: true");
6462+
wSmartDataModel.l(" * DisplayName: area served titles");
6463+
wSmartDataModel.l(" * Description: The titles of each areaServed Paths. ");
6464+
wSmartDataModel.l(" */");
6465+
wSmartDataModel.l(" protected void _areaServedTitles(List<String> l) {");
6466+
wSmartDataModel.l(" }");
6467+
wSmartDataModel.l();
6468+
wSmartDataModel.l(" /**");
6469+
wSmartDataModel.l(" * {@inheritDoc}");
6470+
wSmartDataModel.l(" * LocationUrl: true");
6471+
wSmartDataModel.l(" * Indexed: true");
6472+
wSmartDataModel.l(" * Stored: true");
6473+
wSmartDataModel.l(" * DisplayName: area served links");
6474+
wSmartDataModel.l(" * Description: The links of each areaServed Paths. ");
6475+
wSmartDataModel.l(" */");
6476+
wSmartDataModel.l(" protected void _areaServedLinks(List<String> l) {");
6477+
wSmartDataModel.l(" }");
6478+
wSmartDataModel.l();
6479+
wSmartDataModel.l(" /**");
6480+
wSmartDataModel.l(" * {@inheritDoc}");
64466481
wSmartDataModel.l(" * FiwareType: geo:linestring");
64476482
wSmartDataModel.l(" * Location: true");
64486483
}

0 commit comments

Comments
 (0)