Provide the SPCE module
[alto.git] / alto-model / src / main / java / org / opendaylight / yang / gen / v1 / urn / opendaylight / alto / service / types / rev150404 / GlobalEndpointPropertyBuilder.java
1 package org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404;
2
3 import org.opendaylight.yang.gen.v1.urn.opendaylight.alto.service.types.rev150404.GlobalEndpointProperty.Enumeration;
4
5
6 /**
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).
9  *
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
12  * loss of user code.
13  *
14  */
15 public class GlobalEndpointPropertyBuilder {
16
17     public static GlobalEndpointProperty getDefaultInstance(java.lang.String defaultValue) {
18         if ("Pid".equals(defaultValue)) {
19             return new GlobalEndpointProperty(Enumeration.Pid);
20         } else {
21             return new GlobalEndpointProperty(defaultValue);
22         }
23     }
24
25 }