@Override public PcepIroObject build() { PcepObjectHeader iroObjHeader = this.bIsHeaderSet ? this.iroObjHeader : DEFAULT_IRO_OBJECT_HEADER; if (bIsPFlagSet) { iroObjHeader.setPFlag(bPFlag); } if (bIsIFlagSet) { iroObjHeader.setIFlag(bIFlag); } return new PcepIroObjectVer1(iroObjHeader, this.llSubObjects); }
@Override public PcepTEObject build() { PcepObjectHeader teObjHeader = this.bIsHeaderSet ? this.teObjHeader : DEFAULT_TE_OBJECT_HEADER; byte yProtocolId = this.bIsProtocolIdSet ? this.yProtocolId : DEFAULT_PROTOCOL_ID; boolean bRFlag = this.bIsRFlagSet ? this.bRFlag : DEFAULT_R_FLAG; boolean bSFlag = this.bIsSFlagSet ? this.bSFlag : DEFAULT_S_FLAG; int iTEId = this.bIsTEIdSet ? this.iTEId : DEFAULT_TE_ID; if (bIsPFlagSet) { teObjHeader.setPFlag(bPFlag); } if (bIsIFlagSet) { teObjHeader.setIFlag(bIFlag); } return new PcepTEObjectVer1(teObjHeader, yProtocolId, bRFlag, bSFlag, iTEId, llOptionalTlv); }
@Override public PcepLspObject build() { PcepObjectHeader lspObjHeader = this.bIsHeaderSet ? this.lspObjHeader : DEFAULT_LSP_OBJECT_HEADER; int plspId = this.bIsPlspIdSet ? this.plspId : DEFAULT_PLSPID; byte yOFlag = this.bIsOFlagSet ? this.yOFlag : DEFAULT_OFLAG; boolean bAFlag = this.bIsAFlagSet ? this.bAFlag : DEFAULT_AFLAG; boolean bRFlag = this.bIsRFlagSet ? this.bRFlag : DEFAULT_RFLAG; boolean bSFlag = this.bIsSFlagSet ? this.bSFlag : DEFAULT_SFLAG; boolean bDFlag = this.bIsDFlagSet ? this.bDFlag : DEFAULT_DFLAG; boolean bCFlag = this.bIsCFlagSet ? this.bCFlag : DEFAULT_CFLAG; if (bIsPFlagSet) { lspObjHeader.setPFlag(bPFlag); } if (bIsIFlagSet) { lspObjHeader.setIFlag(bIFlag); } return new PcepLspObjectVer1( lspObjHeader, plspId, yOFlag, bAFlag, bRFlag, bSFlag, bDFlag, bCFlag, llOptionalTlv); }