Class RepoFarLeg
java.lang.Object
net.finmath.smartcontract.product.xml.Leg
net.finmath.smartcontract.product.xml.RepoLegBase
net.finmath.smartcontract.product.xml.RepoFarLeg
A transaction leg for a repo is equivalent to a single cash transaction. It
is augmented here to carry some values that are of interest for the repo. Also note that the BuyerSeller
model in this transaction must be the exact opposite of the one found in the near leg.
Java class for RepoFarLeg complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="RepoFarLeg">
<complexContent>
<extension base="{http://www.fpml.org/FpML-5/confirmation}RepoLegBase">
<sequence>
<group ref="{http://www.fpml.org/FpML-5/confirmation}SettlementAmountOrCurrency.model"/>
<element name="fxRate" type="{http://www.fpml.org/FpML-5/confirmation}FxRate" minOccurs="0"/>
<sequence minOccurs="0">
<element name="deliveryMethod" type="{http://www.fpml.org/FpML-5/confirmation}DeliveryMethod"/>
<element name="deliveryDate" type="{http://www.fpml.org/FpML-5/confirmation}AdjustableOrRelativeDate" minOccurs="0"/>
<element name="collateral" type="{http://www.fpml.org/FpML-5/confirmation}CollateralValuation" maxOccurs="unbounded"/>
</sequence>
<element name="repoInterest" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CollateralValuation> protected AdjustableOrRelativeDateprotected DeliveryMethodprotected FxRateprotected BigDecimalprotected Moneyprotected CurrencyFields inherited from class net.finmath.smartcontract.product.xml.RepoLegBase
buyerAccountReference, buyerPartyReference, sellerAccountReference, sellerPartyReference, settlementDate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the collateral property.Gets the value of the deliveryDate property.Gets the value of the deliveryMethod property.Gets the value of the fxRate property.Gets the value of the repoInterest property.Gets the value of the settlementAmount property.Gets the value of the settlementCurrency property.voidSets the value of the deliveryDate property.voidsetDeliveryMethod(DeliveryMethod value) Sets the value of the deliveryMethod property.voidSets the value of the fxRate property.voidsetRepoInterest(BigDecimal value) Sets the value of the repoInterest property.voidsetSettlementAmount(Money value) Sets the value of the settlementAmount property.voidsetSettlementCurrency(Currency value) Sets the value of the settlementCurrency property.Methods inherited from class net.finmath.smartcontract.product.xml.RepoLegBase
getBuyerAccountReference, getBuyerPartyReference, getSellerAccountReference, getSellerPartyReference, getSettlementDate, setBuyerAccountReference, setBuyerPartyReference, setSellerAccountReference, setSellerPartyReference, setSettlementDate
-
Field Details
-
settlementAmount
-
settlementCurrency
-
fxRate
-
deliveryMethod
-
deliveryDate
-
collateral
-
repoInterest
-
-
Constructor Details
-
RepoFarLeg
public RepoFarLeg()
-
-
Method Details
-
getSettlementAmount
-
setSettlementAmount
-
getSettlementCurrency
-
setSettlementCurrency
-
getFxRate
-
setFxRate
-
getDeliveryMethod
Gets the value of the deliveryMethod property.- Returns:
- possible object is
DeliveryMethod
-
setDeliveryMethod
Sets the value of the deliveryMethod property.- Parameters:
value- allowed object isDeliveryMethod
-
getDeliveryDate
Gets the value of the deliveryDate property.- Returns:
- possible object is
AdjustableOrRelativeDate
-
setDeliveryDate
Sets the value of the deliveryDate property.- Parameters:
value- allowed object isAdjustableOrRelativeDate
-
getCollateral
Gets the value of the collateral property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the collateral property.For example, to add a new item, do as follows:
getCollateral().add(newItem);Objects of the following type(s) are allowed in the list
CollateralValuation -
getRepoInterest
Gets the value of the repoInterest property.- Returns:
- possible object is
BigDecimal
-
setRepoInterest
Sets the value of the repoInterest property.- Parameters:
value- allowed object isBigDecimal
-