1 package org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404;
3 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404.GlobalEndpointProperty.Enumeration;
7 * The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
8 * In some cases it is very difficult to automate it since there can be unions such as (uint32 - uint16), or (string - uint32).
10 * The reason behind putting it under src/main/java is:
11 * 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
15 public class GlobalEndpointPropertyBuilder {
17 public static GlobalEndpointProperty getDefaultInstance(java.lang.String defaultValue) {
18 if ("Pid".equals(defaultValue)) {
19 return new GlobalEndpointProperty(Enumeration.Pid);
21 return new GlobalEndpointProperty(defaultValue);