public LinkBuilder(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes arg) { this._linkId = arg.getLinkId(); this._source = arg.getSource(); this._destination = arg.getDestination(); this._supportingLink = arg.getSupportingLink(); }
public LinkBuilder(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes arg) { this._linkId = arg.getLinkId(); this._source = arg.getSource(); this._destination = arg.getDestination(); this._supportingLink = arg.getSupportingLink(); }
public IgpLinkEventBuilder(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes arg) { this._linkId = arg.getLinkId(); this._source = arg.getSource(); this._destination = arg.getDestination(); this._supportingLink = arg.getSupportingLink(); }
/** *Set fields from given grouping argument. Valid argument is instance of one of following types: * <ul> * <li>org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes</li> * </ul> * * @param arg grouping object * @throws IllegalArgumentException if given argument is none of valid types */ public void fieldsFrom(DataObject arg) { boolean isValidArg = false; if (arg instanceof org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes) { this._linkId = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getLinkId(); this._source = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getDestination(); this._supportingLink = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getSupportingLink(); isValidArg = true; } if (!isValidArg) { throw new IllegalArgumentException( "expected one of: [org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes] \n" + "but was: " + arg ); } }
/** * Set fields from given grouping argument. Valid argument is instance of one of following types: * <ul> * <li>org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes</li> * </ul> * * @param arg grouping object * @throws IllegalArgumentException if given argument is none of valid types */ public void fieldsFrom(DataObject arg) { boolean isValidArg = false; if (arg instanceof org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes) { this._linkId = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getLinkId(); this._source = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getDestination(); this._supportingLink = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getSupportingLink(); isValidArg = true; } CodeHelpers.validValue(isValidArg, arg, "[org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes]"); }
this._linkId = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getLinkId(); this._source = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getSource(); this._destination = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getDestination(); this._supportingLink = ((org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.LinkAttributes)arg).getSupportingLink(); isValidArg = true;