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 AttachmentfromJson(org.json.simple.JSONObject jsonPage)Creates a T instance from a JSON representationAttachmentfromJson(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:ConfluenceResourceBuilderCreates a T instance from a JSON representation
- Specified by:
fromJsonin interfaceConfluenceResourceBuilder<Attachment>- Returns:
- T instance
-
fromJson
public Attachment fromJson(org.json.simple.JSONObject jsonPage, Attachment attachment)
Description copied from interface:ConfluenceResourceBuilderPopulates the given T instance from a JSON representation and return it
- Specified by:
fromJsonin interfaceConfluenceResourceBuilder<Attachment>- Returns:
- T instance
-
getType
public java.lang.Class<Attachment> getType()
Description copied from interface:ConfluenceResourceBuilderReturns the Class of the resource that can be built
- Specified by:
getTypein interfaceConfluenceResourceBuilder<Attachment>- Returns:
- the type Class of the resource which can be built by this builder
-
-