1 package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vpp.classifier.rev150603;
5 * The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
6 * In some cases it is very difficult to automate it since there can be unions such as (uint32 - uint16), or (string - uint32).
8 * The reason behind putting it under src/main/java is:
9 * 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
13 public class VppNodeBuilder {
15 public static VppNode getDefaultInstance(java.lang.String defaultValue) {
16 if (PacketHandlingAction.Deny.toString().equalsIgnoreCase(defaultValue)) {
17 return new VppNode(PacketHandlingAction.Deny);
18 } else if (PacketHandlingAction.Permit.toString().equalsIgnoreCase(defaultValue)) {
19 return new VppNode(PacketHandlingAction.Permit);
21 return new VppNode(new VppNodeName(defaultValue));