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