Uses of Class
com.opengamma.strata.collect.io.XmlElement
-
Packages that use XmlElement Package Description com.opengamma.strata.collect.io Provides utilities for the management of input and output.com.opengamma.strata.loader.fpml Loader that can convert files to financial instruments. -
-
Uses of XmlElement in com.opengamma.strata.collect.io
Methods in com.opengamma.strata.collect.io that return XmlElement Modifier and Type Method Description XmlElement
XmlElement. getChild(int index)
Gets a child element by index.XmlElement
XmlElement. getChild(String childName)
Gets the child element with the specified name, throwing an exception if not found or more than one.XmlElement
XmlFile. getRoot()
Gets the root element of this file.static XmlElement
XmlElement. ofChildren(String name, List<XmlElement> children)
Obtains an instance with children and no attributes.static XmlElement
XmlElement. ofChildren(String name, Map<String,String> attributes, List<XmlElement> children)
Obtains an instance with children and attributes.static XmlElement
XmlElement. ofContent(String name, String content)
Obtains an instance with content and no attributes.static XmlElement
XmlElement. ofContent(String name, Map<String,String> attributes, String content)
Obtains an instance with content and attributes.static XmlElement
XmlFile. parseElements(ByteSource source, ToIntFunction<String> filterFn)
Parses the element names and structure from the specified XML, filtering to reduce memory usage.Methods in com.opengamma.strata.collect.io that return types with arguments of type XmlElement Modifier and Type Method Description Optional<XmlElement>
XmlElement. findChild(String childName)
Finds the child element with the specified name, or empty if not found, throwing an exception if more than one.ImmutableList<XmlElement>
XmlElement. getChildren()
Gets the child elements.ImmutableList<XmlElement>
XmlElement. getChildren(String childName)
Gets the child elements matching the specified name.ImmutableMap<String,XmlElement>
XmlFile. getReferences()
Gets the reference map of id to element.Stream<XmlElement>
XmlElement. streamChildren(String childName)
Gets the child elements matching the specified name.Method parameters in com.opengamma.strata.collect.io with type arguments of type XmlElement Modifier and Type Method Description static XmlElement
XmlElement. ofChildren(String name, List<XmlElement> children)
Obtains an instance with children and no attributes.static XmlElement
XmlElement. ofChildren(String name, Map<String,String> attributes, List<XmlElement> children)
Obtains an instance with children and attributes. -
Uses of XmlElement in com.opengamma.strata.loader.fpml
Methods in com.opengamma.strata.loader.fpml that return XmlElement Modifier and Type Method Description XmlElement
FpmlDocument. getFpmlRoot()
Gets the FpML root element.XmlElement
FpmlDocument. lookupReference(XmlElement hrefEl)
Looks up an element by href/id reference.Methods in com.opengamma.strata.loader.fpml that return types with arguments of type XmlElement Modifier and Type Method Description ImmutableMap<String,XmlElement>
FpmlDocument. getReferences()
Gets the map of href/id references.Methods in com.opengamma.strata.loader.fpml with parameters of type XmlElement Modifier and Type Method Description XmlElement
FpmlDocument. lookupReference(XmlElement hrefEl)
Looks up an element by href/id reference.AdjustableDate
FpmlDocument. parseAdjustableDate(XmlElement baseEl)
Converts an FpML 'AdjustableDate' or 'AdjustableDate2' to anAdjustableDate
.AdjustableDate
FpmlDocument. parseAdjustedRelativeDateOffset(XmlElement baseEl)
Converts an FpML 'AdjustedRelativeDateOffset' to a resolvedLocalDate
.HolidayCalendarId
FpmlDocument. parseBusinessCenter(XmlElement baseEl)
Converts an FpML 'BusinessCenter' to aHolidayCalendar
.HolidayCalendarId
FpmlDocument. parseBusinessCenters(XmlElement baseEl)
Converts an FpML 'BusinessCentersOrReference.model' to aHolidayCalendar
.BusinessDayAdjustment
FpmlDocument. parseBusinessDayAdjustments(XmlElement baseEl)
Converts an FpML 'BusinessDayAdjustments' to aBusinessDayAdjustment
.BuySell
FpmlDocument. parseBuyerSeller(XmlElement baseEl, TradeInfoBuilder tradeInfoBuilder)
Converts an FpML 'BuyerSeller.model' to aBuySell
.Currency
FpmlDocument. parseCurrency(XmlElement baseEl)
Converts an FpML 'Currency' to aCurrency
.CurrencyAmount
FpmlDocument. parseCurrencyAmount(XmlElement baseEl)
Converts an FpML 'Money' to aCurrencyAmount
.LocalDate
FpmlDocument. parseDate(XmlElement baseEl)
Converts an FpML 'date' to aLocalDate
.DayCount
FpmlDocument. parseDayCountFraction(XmlElement baseEl)
Converts an FpML 'DayCountFraction' to aDayCount
.double
FpmlDocument. parseDecimal(XmlElement baseEl)
Converts an FpML 'decimal' to adouble
.Frequency
FpmlDocument. parseFrequency(XmlElement baseEl)
Converts an FpML frequency to aFrequency
.Index
FpmlDocument. parseIndex(XmlElement baseEl)
Converts an FpML 'FloatingRateIndex.model' to anIndex
.List<Index>
FpmlDocument. parseIndexes(XmlElement baseEl)
Converts an FpML 'FloatingRateIndex' with multiple tenors to anIndex
.Tenor
FpmlDocument. parseIndexTenor(XmlElement baseEl)
Converts an FpML 'FloatingRateIndex' tenor to aTenor
.PayReceive
FpmlDocument. parsePayerReceiver(XmlElement baseEl, TradeInfoBuilder tradeInfoBuilder)
Converts an FpML 'PayerReceiver.model' to aPayReceive
.Period
FpmlDocument. parsePeriod(XmlElement baseEl)
Converts an FpML 'Period' to aPeriod
.PriceIndex
FpmlDocument. parsePriceIndex(XmlElement baseEl)
Converts an FpML 'FloatingRateIndex.model' to aPriceIndex
.DaysAdjustment
FpmlDocument. parseRelativeDateOffsetDays(XmlElement baseEl)
Converts an FpML 'RelativeDateOffset' to aDaysAdjustment
.LocalTime
FpmlDocument. parseTime(XmlElement baseEl)
Converts an FpML 'hourMinuteTime' to aLocalTime
.Trade
FpmlParserPlugin. parseTrade(FpmlDocument document, XmlElement tradeEl)
Parses a single FpML format trade.TradeInfoBuilder
FpmlDocument. parseTradeInfo(XmlElement tradeEl)
Parses the trade header element.List<Trade>
FpmlDocumentParser. parseTrades(XmlElement fpmlRootEl, Map<String,XmlElement> references)
Parses the FpML document extracting the trades.void
FpmlDocument. validateNotPresent(XmlElement baseEl, String elementName)
Validates that a specific element is not present.void
FpmlDocument. validateScheme(XmlElement baseEl, String schemeAttr, String... schemeValues)
Validates that the scheme attribute is known.Method parameters in com.opengamma.strata.loader.fpml with type arguments of type XmlElement Modifier and Type Method Description List<Trade>
FpmlDocumentParser. parseTrades(XmlElement fpmlRootEl, Map<String,XmlElement> references)
Parses the FpML document extracting the trades.Constructors in com.opengamma.strata.loader.fpml with parameters of type XmlElement Constructor Description FpmlDocument(XmlElement fpmlRootEl, Map<String,XmlElement> references, FpmlPartySelector ourPartySelector, FpmlTradeInfoParserPlugin tradeInfoParser, ReferenceData refData)
Creates an instance, based on the specified element.Constructor parameters in com.opengamma.strata.loader.fpml with type arguments of type XmlElement Constructor Description FpmlDocument(XmlElement fpmlRootEl, Map<String,XmlElement> references, FpmlPartySelector ourPartySelector, FpmlTradeInfoParserPlugin tradeInfoParser, ReferenceData refData)
Creates an instance, based on the specified element.
-