Class CoreFactory
- java.lang.Object
-
- org.opentest4j.reporting.events.core.CoreFactory
-
public class CoreFactory extends java.lang.Object
Factory for elements of the core namespace.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Factory<Attachments>
attachments()
Create a factory forAttachments
elements.static Factory<CpuCores>
cpuCores(int cpuCores)
Create a factory forCpuCores
elements.static Factory<Data>
data(java.time.LocalDateTime timestamp)
Create a factory forData
elements.static Factory<DirectorySource>
directorySource(java.io.File dir)
Create a factory forDirectorySource
elements.static <P extends Element<P>>
Factory<FilePosition<P>>filePosition(int line, java.util.Optional<java.lang.Integer> column)
Create a factory forFilePosition
elements.static Factory<FileSource>
fileSource(java.io.File file)
Create a factory forFileSource
elements.static Factory<HostName>
hostName(java.lang.String hostName)
Create a factory forHostName
elements.static Factory<Infrastructure>
infrastructure()
Create a factory forInfrastructure
elements.static Factory<Metadata>
metadata()
Create a factory forMetadata
elements.static Factory<OperatingSystem>
operatingSystem(java.lang.String osName)
Create a factory forOperatingSystem
elements.static Factory<Reason>
reason(java.lang.String reason)
Create a factory forReason
elements.static Factory<Result>
result(Result.Status status)
Create a factory forResult
elements.static Factory<Sources>
sources()
Create a factory forSources
elements.static Factory<Tag>
tag(java.lang.String value)
Create a factory forTag
elements.static Factory<Tags>
tags()
Create a factory forTags
elements.static Factory<UriSource>
uriSource(java.net.URI uri)
Create a factory forUriSource
elements.static Factory<UserName>
userName(java.lang.String userName)
Create a factory forUserName
elements.
-
-
-
Method Detail
-
infrastructure
public static Factory<Infrastructure> infrastructure()
Create a factory forInfrastructure
elements.- Returns:
- Infrastructure factory
-
hostName
public static Factory<HostName> hostName(java.lang.String hostName)
Create a factory forHostName
elements.- Parameters:
hostName
- the host name- Returns:
- HostName factory
-
userName
public static Factory<UserName> userName(java.lang.String userName)
Create a factory forUserName
elements.- Parameters:
userName
- the user name- Returns:
- UserName factory
-
operatingSystem
public static Factory<OperatingSystem> operatingSystem(java.lang.String osName)
Create a factory forOperatingSystem
elements.- Parameters:
osName
- the name of the operating system- Returns:
- OperatingSystem factory
-
cpuCores
public static Factory<CpuCores> cpuCores(int cpuCores)
Create a factory forCpuCores
elements.- Parameters:
cpuCores
- the number of CPU cores- Returns:
- CpuCores factory
-
sources
public static Factory<Sources> sources()
Create a factory forSources
elements.- Returns:
- Sources factory
-
metadata
public static Factory<Metadata> metadata()
Create a factory forMetadata
elements.- Returns:
- Metadata factory
-
tag
public static Factory<Tag> tag(java.lang.String value)
Create a factory forTag
elements.- Parameters:
value
- the value of the tag- Returns:
- Tag factory
-
attachments
public static Factory<Attachments> attachments()
Create a factory forAttachments
elements.- Returns:
- Attachments factory
-
data
public static Factory<Data> data(java.time.LocalDateTime timestamp)
Create a factory forData
elements.- Parameters:
timestamp
- the timestamp of the data- Returns:
- Data factory
-
result
public static Factory<Result> result(Result.Status status)
Create a factory forResult
elements.- Parameters:
status
- the status of the result- Returns:
- Result factory
-
reason
public static Factory<Reason> reason(java.lang.String reason)
Create a factory forReason
elements.- Parameters:
reason
- the reason- Returns:
- Reason factory
-
fileSource
public static Factory<FileSource> fileSource(java.io.File file)
Create a factory forFileSource
elements.- Parameters:
file
- the source file- Returns:
- FileSource factory
-
directorySource
public static Factory<DirectorySource> directorySource(java.io.File dir)
Create a factory forDirectorySource
elements.- Parameters:
dir
- the source directory- Returns:
- DirectorySource factory
-
uriSource
public static Factory<UriSource> uriSource(java.net.URI uri)
Create a factory forUriSource
elements.- Parameters:
uri
- the source URI- Returns:
- UriSource factory
-
filePosition
public static <P extends Element<P>> Factory<FilePosition<P>> filePosition(int line, java.util.Optional<java.lang.Integer> column)
Create a factory forFilePosition
elements.- Type Parameters:
P
- parent element type- Parameters:
line
- the line numbercolumn
- the column number- Returns:
- FilePosition factory
-
-