public static class Attachment.AttachmentBuilder extends java.lang.Object implements ConfluenceResourceBuilder<Attachment>
AttachmentBuilder internal class
Used to build Attachments
Constructor and Description |
---|
AttachmentBuilder() |
Modifier and Type | Method and Description |
---|---|
Attachment |
fromJson(org.json.simple.JSONObject jsonPage)
Creates a T instance from a JSON representation
|
Attachment |
fromJson(org.json.simple.JSONObject jsonPage,
Attachment attachment)
Populates the given T instance from a JSON representation and return it
|
java.lang.Class<Attachment> |
getType()
Returns the Class of the resource that can be built
|
public Attachment fromJson(org.json.simple.JSONObject jsonPage)
ConfluenceResourceBuilder
Creates a T instance from a JSON representation
fromJson
in interface ConfluenceResourceBuilder<Attachment>
public Attachment fromJson(org.json.simple.JSONObject jsonPage, Attachment attachment)
ConfluenceResourceBuilder
Populates the given T instance from a JSON representation and return it
fromJson
in interface ConfluenceResourceBuilder<Attachment>
public java.lang.Class<Attachment> getType()
ConfluenceResourceBuilder
Returns the Class of the resource that can be built
getType
in interface ConfluenceResourceBuilder<Attachment>