Bug 3051: Fixed pattern checks in generated DTOs 73/18973/6
authorTony Tkacik <ttkacik@cisco.com>
Thu, 23 Apr 2015 15:13:36 +0000 (17:13 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 5 Jun 2015 10:47:39 +0000 (10:47 +0000)
commit353b1fd919494090b661d4b20b8bc102030afb2e
tree31733b149ff9aec97091614f5eb1401318b6f293
parent0c58b4c45c1caedd1e3ecdfa056c0c4f98185c63
Bug 3051: Fixed pattern checks in generated DTOs

Pattern checks in generated DTOs were generated as
OR checks in case model type specified multiple
patterns, but correct behaviour is to do AND.

So in order string needs to verified against
all patterns and match all of them.

Change-Id: If82e282312c82dd71de79534c7fa599fcdcefab4
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
code-generator/binding-java-api-generator/src/main/java/org/opendaylight/yangtools/sal/java/api/generator/ClassTemplate.xtend
model/ietf/ietf-inet-types/src/test/java/org/opendaylight/yang/gen/v1/urn/ietf/params/xml/ns/yang/ietf/inet/types/rev100924/HostBuilderTest.java