1 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701;
6 * The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
7 * In some cases it is very difficult to automate it since there can be unions such as (uint32 - uint16), or (string - uint32).
9 * The reason behind putting it under src/main/java is:
10 * This class is generated in form of a stub and needs to be finished by the user. This class is generated only once to prevent
14 public class Int32StringUnionBuilder {
16 public static Int32StringUnion getDefaultInstance(final java.lang.String defaultValue) {
18 return new Int32StringUnion(Integer.parseInt(defaultValue));
19 } catch (final NumberFormatException e) {
20 return new Int32StringUnion(defaultValue);