Record Class Insert
java.lang.Object
java.lang.Record
pro.verron.officestamper.api.Insert
- Record Components:
elements- The list of document elements to be inserted.
The Insert record represents a container for managing collections of document elements that can be inserted into a DOCX document.
This record is used to wrap various types of document elements such as text runs, smart tag runs, and other WML objects that can be inserted into a document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidsetRPr(@Nullable org.docx4j.wml.RPr rPr) Sets the run properties for all runs in the list.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Insert
Creates an Insert with a single element.- Parameters:
element- the element to be inserted.
-
Insert
-
-
Method Details
-
setRPr
public void setRPr(@Nullable org.docx4j.wml.RPr rPr) Sets the run properties for all runs in the list.- Parameters:
rPr- the run properties to set.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
elements
-