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

public Class File

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

The file 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 file element.

public static final QualifiedName
MEDIA_TYPE

Qualified name of the path attribute.

public static final QualifiedName
PATH

Qualified name of the path attribute.

public static final QualifiedName
TIME

Qualified name of the time attribute.

Constructor Summary

AccessConstructor and Description
pack-priv
File(Context context)

Method Summary

Modifier and TypeMethod and Description
public File

Returns:

this element
withMediaType
(String
the media type to set
mediaType
)

Set the mediaType attribute of this element.

public File

Returns:

this element
withPath
(String
the path to set
path
)

Set the path attribute of this element.

public File

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 file element.

MEDIA_TYPEback to summary
public static final QualifiedName MEDIA_TYPE

Qualified name of the path attribute.

PATHback to summary
public static final QualifiedName PATH

Qualified name of the path attribute.

TIMEback to summary
public static final QualifiedName TIME

Qualified name of the time attribute.

Constructor Detail

Fileback to summary
pack-priv File(Context context)

Method Detail

withMediaTypeback to summary
public File withMediaType(String mediaType)

Set the mediaType attribute of this element.

Parameters
mediaType:String

the media type to set

Returns:File

this element

withPathback to summary
public File withPath(String path)

Set the path attribute of this element.

Parameters
path:String

the path to set

Returns:File

this element

withTimeback to summary
public File withTime(LocalDateTime timestamp)

Set the time attribute of this element.

Parameters
timestamp:LocalDateTime

the timestamp to set

Returns:File

this element