@@ -16,26 +16,13 @@ class DataTypes {
1616 private val log: Logger = LoggerFactory .getLogger(this .javaClass.name)
1717
1818 class DataTypeInfo (val dataType : DataType , var refCount : Long = 0 ) {
19-
2019 fun addRef () {
2120 refCount++
2221 }
23-
2422 }
2523
2624 private val dataTypeInfos: MutableMap <String , DataTypeInfo > = mutableMapOf ()
2725
28- /* * test only
29- * provides all named data types (including simple data types) used by the api endpoint.
30- *
31- * @return list of data types
32- */
33- fun getDataTypes (): Collection <DataType > {
34- return dataTypeInfos.values
35- .filter { it.dataType !is MappedDataType }
36- .map { it.dataType }
37- }
38-
3926 /* *
4027 * provides the *object* data types (model classes) used by the api endpoints.
4128 * For these objects the processor will create POJOs classes.
@@ -143,7 +130,18 @@ class DataTypes {
143130 get() = dataTypeInfos.size
144131
145132 /* *
146- * test.
133+ * test only. Provides all named data types (including simple data types) used by the api endpoints.
134+ *
135+ * @return list of data types
136+ */
137+ fun getDataTypes (): Collection <DataType > {
138+ return dataTypeInfos.values
139+ .filter { it.dataType !is MappedDataType }
140+ .map { it.dataType }
141+ }
142+
143+ /* *
144+ * test only.
147145 */
148146 fun getRefCnt (name : String ): Long {
149147 return dataTypeInfos[name]?.refCount!!
@@ -157,5 +155,4 @@ class DataTypes {
157155 println (" ${it.key} (${it.value.dataType.getPackageName()} ) ${it.value.refCount} " )
158156 }
159157 }
160-
161158}
0 commit comments