Top Description Inners Fields Constructors Methods
org.opentest4j.reporting.events.core

public Class Data

extends ChildElement<Attachments, Data>
Class Inheritance
Annotations
@API
status:EXPERIMENTAL
since:0.1.0
Imports
org.apiguardian.api.API, org.opentest4j.reporting.events.api.ChildElement, .Context, org.opentest4j.reporting.schema.Namespace, .QualifiedName, java.time.LocalDateTime

The data element of the core namespace.
Since
0.1.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Data.Entry

The entry element of the core namespace.

Field Summary

Modifier and TypeField and Description
public static final QualifiedName
ELEMENT

Qualified name of the data element.

public static final QualifiedName
TIME

Qualified name of the time attribute.

Constructor Summary

AccessConstructor and Description
pack-priv
Data(Context context)

Method Summary

Modifier and TypeMethod and Description
public void
addEntry(String
entry key
key
,
String
entry value
value
)

Add an entry child element to this element.

public Data

Returns:

this element
withTime
(LocalDateTime
the timestamp to set
timestamp
)

Set the time attribute of this element.

Field Detail

ELEMENTback to summary
public static final QualifiedName ELEMENT

Qualified name of the data element.

TIMEback to summary
public static final QualifiedName TIME

Qualified name of the time attribute.

Constructor Detail

Databack to summary
pack-priv Data(Context context)

Method Detail

addEntryback to summary
public void addEntry(String key, String value)

Add an entry child element to this element.

Parameters
key:String

entry key

value:String

entry value

withTimeback to summary
public Data withTime(LocalDateTime timestamp)

Set the time attribute of this element.

Parameters
timestamp:LocalDateTime

the timestamp to set

Returns:Data

this element

org.opentest4j.reporting.events.core back to summary

public Class Data.Entry

extends ChildElement<Data, Data.Entry>
Class Inheritance

The entry element of the core namespace.
Since
0.2.0

Field Summary

Modifier and TypeField and Description
public static final QualifiedName
ELEMENT

Qualified name of the entry element.

public static final QualifiedName
KEY

Qualified name of the key attribute.

Constructor Summary

AccessConstructor and Description
pack-priv
Entry(Context context, String key, String value)

Field Detail

ELEMENTback to summary
public static final QualifiedName ELEMENT

Qualified name of the entry element.

KEYback to summary
public static final QualifiedName KEY

Qualified name of the key attribute.

Constructor Detail

Entryback to summary
pack-priv Entry(Context context, String key, String value)