Package net.ygbstudio.powerwp4j.builders
Class WPMediaPayloadNodeBuilder
java.lang.Object
net.ygbstudio.powerwp4j.base.extension.builders.AbstractPayloadNodeBuilder<WPMediaPayloadNodeBuilder>
net.ygbstudio.powerwp4j.builders.WPMediaPayloadNodeBuilder
public class WPMediaPayloadNodeBuilder
extends AbstractPayloadNodeBuilder<WPMediaPayloadNodeBuilder>
WPMediaPayloadNodeBuilder is a builder class for constructing a WordPress media payload. It
extends the
AbstractPayloadNodeBuilder class and provides methods for setting various
properties of the media payload such as alternative text, caption, and description. For more
information on this alternative implementation, refer to the documentation of the parent abstract
class.- See Also:
-
Field Summary
Fields inherited from class net.ygbstudio.powerwp4j.base.extension.builders.AbstractPayloadNodeBuilder
payloadNode -
Method Summary
Modifier and TypeMethodDescriptionSets the alternative text for the media attachment.static WPMediaPayloadNodeBuilderbuilder()Sets the caption for the media attachment.description(String description) Sets the description for the media attachment.
-
Method Details
-
builder
-
altText
Sets the alternative text for the media attachment.- Parameters:
altText- Alternative text of the media attachment.- Returns:
- The current instance of WPMediaPayloadNodeBuilder.
-
caption
Sets the caption for the media attachment.- Parameters:
caption- Caption of the media attachment.- Returns:
- The current instance of WPMediaPayloadNodeBuilder.
-
description
Sets the description for the media attachment.- Parameters:
description- Description of the media attachment.- Returns:
- The current instance of WPMediaPayloadNodeBuilder.
-