Class Element<T extends Element<T>>
java.lang.Object
org.opentest4j.reporting.events.api.Element<T>
- Type Parameters:
T- element type
- All Implemented Interfaces:
Appendable<T>
- Direct Known Subclasses:
ChildElement, Events
Base class for elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<C extends ChildElement<T, ? super C>>
Appendable<T> toString()withAttribute(org.opentest4j.reporting.schema.QualifiedName qualifiedName, String value) Add an attribute to this element.withCDataSection(String value) Add a CDATA section to this element.withContent(String value) Add text content to this element.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Appendable
append
-
Constructor Details
-
Element
-
-
Method Details
-
withContent
-
withCDataSection
-
withAttribute
-
append
public <C extends ChildElement<T, ? super C>> Appendable<T> append(Factory<C> creator, Consumer<? super C> configurer) Description copied from interface:Appendable- Specified by:
appendin interfaceAppendable<T extends Element<T>>- Type Parameters:
C- child element type- Parameters:
creator- child element factoryconfigurer- child element configurer- Returns:
- self reference to allow method chaining
-
toString
-