Eliminate SchemasStream.EntityType 84/110084/11
authorlubos-cicut <lubos.cicut@pantheon.tech>
Mon, 29 Jan 2024 18:48:29 +0000 (19:48 +0100)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 27 Feb 2024 19:30:32 +0000 (19:30 +0000)
commit61fd387f1a6cefdf913996bfd4b27e5ad636723d
tree906bc92f036ec559ea2f7780f17bace7816b1ca9
parent3c7fc15ebf4ce986ae30f7a19d51e9aa22ccfc94
Eliminate SchemasStream.EntityType

We were using SchemasStream.EntityType to distinguish if
SchemaEntity is node or RPC. Eliminated this enum and created
a class hierarchy structure, so we now have NodeSchemaEntity and
RpcSchemaEntity

JIRA: NETCONF-1226
Change-Id: I70a9f48de0528443831b95d16e83dd513a73bc13
Signed-off-by: lubos-cicut <lubos.cicut@pantheon.tech>
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/SchemasStream.java
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/model/NodeSchemaEntity.java [new file with mode: 0644]
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/model/RpcSchemaEntity.java [new file with mode: 0644]
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/model/SchemaEntity.java