Package | Description |
---|---|
sirius.kernel.xml |
Helper classes to read and write XML.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractStructuredOutput
Basic implementation of StructuredOutput, taking care of all output independent boilerplate code.
|
class |
XMLGenerator
Uses an XMLStructuredOutput with a temporary buffer to generate XML into a String.
|
class |
XMLStructuredOutput
Represents a
StructuredOutput emitting XML data. |
Modifier and Type | Method and Description |
---|---|
<E> StructuredOutput |
StructuredOutput.array(String name,
Collection<E> array,
BiConsumer<StructuredOutput,E> arrayConsumer)
Outputs the given collection as array while using the given arrayConsumer to generate the array
contents.
|
<E> StructuredOutput |
AbstractStructuredOutput.array(String name,
Collection<E> array,
BiConsumer<StructuredOutput,E> arrayConsumer) |
StructuredOutput |
StructuredOutput.array(String name,
String elementName,
Collection<?> array)
Outputs the given collection as array.
|
StructuredOutput |
AbstractStructuredOutput.array(String name,
String elementName,
Collection<?> array) |
StructuredOutput |
StructuredOutput.beginArray(String name)
Starts an array with is added to the current object as "name".
|
StructuredOutput |
AbstractStructuredOutput.beginArray(String name) |
StructuredOutput |
StructuredOutput.beginObject(String name)
Starts a new object with the given name.
|
StructuredOutput |
AbstractStructuredOutput.beginObject(String name) |
StructuredOutput |
StructuredOutput.beginObject(String name,
Attribute... attributes)
Starts a new object with the given name and attributes
|
StructuredOutput |
AbstractStructuredOutput.beginObject(String name,
Attribute... attributes) |
StructuredOutput |
XMLStructuredOutput.beginOutput(String rootElement)
Starts the output with the given root element.
|
StructuredOutput |
XMLStructuredOutput.beginOutput(String rootElement,
Attribute... attr)
Starts the output with the given root element and attributes
|
StructuredOutput |
XMLStructuredOutput.beginResult() |
StructuredOutput |
StructuredOutput.beginResult()
Starts the result with a default root element ("result").
|
StructuredOutput |
XMLStructuredOutput.beginResult(String name) |
StructuredOutput |
StructuredOutput.beginResult(String name)
Starts the result by specifying the name of the root element.
|
StructuredOutput |
StructuredOutput.endArray()
Ends the currently open array.
|
StructuredOutput |
AbstractStructuredOutput.endArray() |
StructuredOutput |
StructuredOutput.endObject()
Ends the currently open object.
|
StructuredOutput |
AbstractStructuredOutput.endObject() |
StructuredOutput |
StructuredOutput.nullsafeProperty(String name,
Object data)
Adds a property to the current object.
|
StructuredOutput |
AbstractStructuredOutput.nullsafeProperty(String name,
Object data) |
StructuredOutput |
StructuredOutput.property(String name,
Object data)
Adds a property to the current object.
|
StructuredOutput |
AbstractStructuredOutput.property(String name,
Object data) |
StructuredOutput |
XMLStructuredOutput.propertyIfFilled(String name,
Object data)
Adds a property to the current object.
|
StructuredOutput |
XMLStructuredOutput.text(Object text)
Creates a text node for the current node.
|
Modifier and Type | Method and Description |
---|---|
<E> StructuredOutput |
StructuredOutput.array(String name,
Collection<E> array,
BiConsumer<StructuredOutput,E> arrayConsumer)
Outputs the given collection as array while using the given arrayConsumer to generate the array
contents.
|
<E> StructuredOutput |
AbstractStructuredOutput.array(String name,
Collection<E> array,
BiConsumer<StructuredOutput,E> arrayConsumer) |
Copyright © 2018. All rights reserved.