Class Attachment.AttachmentBuilder
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.confluence.model.Attachment.AttachmentBuilder
-
- All Implemented Interfaces:
ConfluenceResourceBuilder<Attachment>
- Enclosing class:
- Attachment
public static class Attachment.AttachmentBuilder extends java.lang.Object implements ConfluenceResourceBuilder<Attachment>
AttachmentBuilder internal class
Used to build Attachments
- Author:
- Antonio David Perez Morales <adperezmorales@gmail.com>
-
-
Constructor Summary
Constructors Constructor Description AttachmentBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachment
fromJson(org.json.simple.JSONObject jsonPage)
Creates a T instance from a JSON representationAttachment
fromJson(org.json.simple.JSONObject jsonPage, Attachment attachment)
Populates the given T instance from a JSON representation and return itjava.lang.Class<Attachment>
getType()
Returns the Class of the resource that can be built
-
-
-
Method Detail
-
fromJson
public Attachment fromJson(org.json.simple.JSONObject jsonPage)
Description copied from interface:ConfluenceResourceBuilder
Creates a T instance from a JSON representation
- Specified by:
fromJson
in interfaceConfluenceResourceBuilder<Attachment>
- Returns:
- T instance
-
fromJson
public Attachment fromJson(org.json.simple.JSONObject jsonPage, Attachment attachment)
Description copied from interface:ConfluenceResourceBuilder
Populates the given T instance from a JSON representation and return it
- Specified by:
fromJson
in interfaceConfluenceResourceBuilder<Attachment>
- Returns:
- T instance
-
getType
public java.lang.Class<Attachment> getType()
Description copied from interface:ConfluenceResourceBuilder
Returns the Class of the resource that can be built
- Specified by:
getType
in interfaceConfluenceResourceBuilder<Attachment>
- Returns:
- the type Class of the resource which can be built by this builder
-
-