- return new «genTO.name»(«Empty.importedName».getInstance());
- «ELSEIF allProperties.size > 1»
- «bitsArgs»
- «ELSEIF BOOLEAN.equals(prop.returnType)»
- return new «genTO.name»(«Boolean.importedName».valueOf(defaultValue));
- «ELSEIF "java.lang.Byte".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Byte.importedName».valueOf(defaultValue));
- «ELSEIF "java.lang.Short".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Short.importedName».valueOf(defaultValue));
- «ELSEIF "java.lang.Integer".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Integer.importedName».valueOf(defaultValue));
- «ELSEIF "java.lang.Long".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Long.importedName».valueOf(defaultValue));
- «ELSEIF "org.opendaylight.yangtools.yang.common.Uint8".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Uint8.importedName».valueOf(defaultValue));
- «ELSEIF "org.opendaylight.yangtools.yang.common.Uint16".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Uint16.importedName».valueOf(defaultValue));
- «ELSEIF "org.opendaylight.yangtools.yang.common.Uint32".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Uint32.importedName».valueOf(defaultValue));
- «ELSEIF "org.opendaylight.yangtools.yang.common.Uint64".equals(prop.returnType.fullyQualifiedName)»
- return new «genTO.name»(«Uint64.importedName».valueOf(defaultValue));