@* * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html *@ @import org.opendaylight.mdsal.binding.javav2.java.api.generator.util.TextTemplateUtil.asArguments @import org.opendaylight.mdsal.binding.javav2.java.api.generator.util.TextTemplateUtil.fieldName @import org.opendaylight.mdsal.binding.javav2.model.api.GeneratedProperty @import org.opendaylight.mdsal.binding.javav2.model.api.GeneratedType @(genType: GeneratedType, parentProperties: List[GeneratedProperty], allProperty: GeneratedProperty, other: List[GeneratedProperty], importedName: String, genRestrictions: String) public @{genType.getName}(@{importedName} @{allProperty.getName}) { @if(!parentProperties.isEmpty) { super(@{asArguments(parentProperties)}); } @{genRestrictions} this.@{fieldName(allProperty)} = @{allProperty.getName}; @for(item <- other) { this.@{fieldName(item)} = null; } }