| Package | Description |
|---|---|
| com.opengamma.strata.collect.io |
Provides utilities for the management of input and output.
|
| Modifier and Type | Method and 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,
Map<String,String> attributes,
String content)
Obtains an instance with content and attributes.
|
static XmlElement |
XmlElement.ofContent(String name,
String content)
Obtains an instance with content and no 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.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and 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.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.