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