Interface Appendable<T extends Element<T>>
- Type Parameters:
T- parent element type
- All Known Subinterfaces:
DocumentWriter<T>
- All Known Implementing Classes:
Attachments,ChildElement,ClasspathResourceSource,ClassSource,CpuCores,Data,DirectorySource,Element,Event,Events,FileEncoding,FilePosition,FileSource,Finished,HeapSize,HostName,Infrastructure,JavaVersion,Metadata,MethodSource,OperatingSystem,PackageSource,Reason,Reported,Result,Sources,Started,Tag,Tags,Throwable,UriSource,UserName
public interface Appendable<T extends Element<T>>
Interface for objects that support appending child elements.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <C extends ChildElement<T,? super C>>
Appendable<T> Append the child element created by the supplied factory.<C extends ChildElement<T,? super C>>
Appendable<T>
-
Method Details
-
append
Append the child element created by the supplied factory.- Type Parameters:
C- child element type- Parameters:
creator- child element factory- Returns:
- self reference to allow method chaining
-
append
<C extends ChildElement<T,? super C>> Appendable<T> append(Factory<C> creator, Consumer<? super C> configurer) - Type Parameters:
C- child element type- Parameters:
creator- child element factoryconfigurer- child element configurer- Returns:
- self reference to allow method chaining
-