/* * Copyright (c) 2013 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 */ package org.opendaylight.yangtools.sal.binding.model.api.type.builder; import org.opendaylight.yangtools.sal.binding.model.api.GeneratedTransferObject; /** * Generated Transfer Object Builder is interface that contains methods to build * and instantiate Generated Transfer Object definition. * * @see GeneratedTransferObject */ public interface GeneratedTOBuilder extends GeneratedTypeBuilderBase { /** * Add Generated Transfer Object from which will be extended current * Generated Transfer Object.
* By definition Java does not allow multiple inheritance, hence if there is * already definition of Generated Transfer Object the extending object will * be overwritten by lastly added Generated Transfer Object.
* If Generated Transfer Object is null the method SHOULD throw * {@link IllegalArgumentException} * * @param genTransObj * Generated Transfer Object * @return This instance of builder */ public GeneratedTOBuilder setExtendsType(final GeneratedTransferObject genTransObj); /** * Add Property that will be part of equals definition.
* If Generated Property Builder is null the method SHOULD * throw {@link IllegalArgumentException} * * @param property * Generated Property Builder * @return This instance of builder */ public GeneratedTOBuilder addEqualsIdentity(final GeneratedPropertyBuilder property); /** * Add Property that will be part of hashCode definition.
* If Generated Property Builder is null the method SHOULD * throw {@link IllegalArgumentException} * * @param property * Generated Property Builder * @return This instance of builder */ public GeneratedTOBuilder addHashIdentity(final GeneratedPropertyBuilder property); /** * Add Property that will be part of toString definition.
* If Generated Property Builder is null the method SHOULD * throw {@link IllegalArgumentException} * * @param property * Generated Property Builder * @return This instance of builder */ public GeneratedTOBuilder addToStringProperty(final GeneratedPropertyBuilder property); public GeneratedTransferObject toInstance(); /** * Set original YANG type for GeneratedTOBuilder. It is YANG type from which * is this transport object created. * * @param yangType * YangType enum value of original YANG type */ public void setIsUnion(boolean isUnion); }