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 XmlElementXmlElement. getChild(int index)Gets a child element by index.XmlElementXmlElement. getChild(String childName)Gets the child element with the specified name, throwing an exception if not found or more than one.XmlElementXmlFile. getRoot()Gets the root element of this file.static XmlElementXmlElement. ofChildren(String name, List<XmlElement> children)Obtains an instance with children and no attributes.static XmlElementXmlElement. ofChildren(String name, Map<String,String> attributes, List<XmlElement> children)Obtains an instance with children and attributes.static XmlElementXmlElement. ofContent(String name, String content)Obtains an instance with content and no attributes.static XmlElementXmlElement. ofContent(String name, Map<String,String> attributes, String content)Obtains an instance with content and attributes.static XmlElementXmlFile. 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 XmlElementXmlElement. ofChildren(String name, List<XmlElement> children)Obtains an instance with children and no attributes.static XmlElementXmlElement. 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 XmlElementFpmlDocument. getFpmlRoot()Gets the FpML root element.XmlElementFpmlDocument. 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 XmlElementFpmlDocument. lookupReference(XmlElement hrefEl)Looks up an element by href/id reference.AdjustableDateFpmlDocument. parseAdjustableDate(XmlElement baseEl)Converts an FpML 'AdjustableDate' or 'AdjustableDate2' to anAdjustableDate.AdjustableDateFpmlDocument. parseAdjustedRelativeDateOffset(XmlElement baseEl)Converts an FpML 'AdjustedRelativeDateOffset' to a resolvedLocalDate.HolidayCalendarIdFpmlDocument. parseBusinessCenter(XmlElement baseEl)Converts an FpML 'BusinessCenter' to aHolidayCalendar.HolidayCalendarIdFpmlDocument. parseBusinessCenters(XmlElement baseEl)Converts an FpML 'BusinessCentersOrReference.model' to aHolidayCalendar.BusinessDayAdjustmentFpmlDocument. parseBusinessDayAdjustments(XmlElement baseEl)Converts an FpML 'BusinessDayAdjustments' to aBusinessDayAdjustment.BuySellFpmlDocument. parseBuyerSeller(XmlElement baseEl, TradeInfoBuilder tradeInfoBuilder)Converts an FpML 'BuyerSeller.model' to aBuySell.CurrencyFpmlDocument. parseCurrency(XmlElement baseEl)Converts an FpML 'Currency' to aCurrency.CurrencyAmountFpmlDocument. parseCurrencyAmount(XmlElement baseEl)Converts an FpML 'Money' to aCurrencyAmount.LocalDateFpmlDocument. parseDate(XmlElement baseEl)Converts an FpML 'date' to aLocalDate.DayCountFpmlDocument. parseDayCountFraction(XmlElement baseEl)Converts an FpML 'DayCountFraction' to aDayCount.doubleFpmlDocument. parseDecimal(XmlElement baseEl)Converts an FpML 'decimal' to adouble.FrequencyFpmlDocument. parseFrequency(XmlElement baseEl)Converts an FpML frequency to aFrequency.IndexFpmlDocument. 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.TenorFpmlDocument. parseIndexTenor(XmlElement baseEl)Converts an FpML 'FloatingRateIndex' tenor to aTenor.PayReceiveFpmlDocument. parsePayerReceiver(XmlElement baseEl, TradeInfoBuilder tradeInfoBuilder)Converts an FpML 'PayerReceiver.model' to aPayReceive.PeriodFpmlDocument. parsePeriod(XmlElement baseEl)Converts an FpML 'Period' to aPeriod.PriceIndexFpmlDocument. parsePriceIndex(XmlElement baseEl)Converts an FpML 'FloatingRateIndex.model' to aPriceIndex.DaysAdjustmentFpmlDocument. parseRelativeDateOffsetDays(XmlElement baseEl)Converts an FpML 'RelativeDateOffset' to aDaysAdjustment.LocalTimeFpmlDocument. parseTime(XmlElement baseEl)Converts an FpML 'hourMinuteTime' to aLocalTime.TradeFpmlParserPlugin. parseTrade(FpmlDocument document, XmlElement tradeEl)Parses a single FpML format trade.TradeInfoBuilderFpmlDocument. 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.voidFpmlDocument. validateNotPresent(XmlElement baseEl, String elementName)Validates that a specific element is not present.voidFpmlDocument. 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.
-