Interface ConfluenceResourceBuilder<T extends ConfluenceResource>
-
- Type Parameters:
T- Subtype of ConfluenceResource to be built
- All Known Implementing Classes:
Attachment.AttachmentBuilder,Label.LabelBuilder,Page.PageBuilder
public interface ConfluenceResourceBuilder<T extends ConfluenceResource>ConfluenceResourceBuilder interface
- Author:
- Antonio David Perez Morales <adperezmorales@gmail.com>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TfromJson(org.json.simple.JSONObject jsonDocument)Creates a T instance from a JSON representationTfromJson(org.json.simple.JSONObject jsonDocument, T document)Populates the given T instance from a JSON representation and return itjava.lang.Class<T>getType()Returns the Class of the resource that can be built
-
-
-
Method Detail
-
fromJson
T fromJson(org.json.simple.JSONObject jsonDocument)
Creates a T instance from a JSON representation
- Parameters:
jsonDocument-- Returns:
- T instance
-
fromJson
T fromJson(org.json.simple.JSONObject jsonDocument, T document)
Populates the given T instance from a JSON representation and return it
- Parameters:
jsonDocument-- Returns:
- T instance
-
getType
java.lang.Class<T> getType()
Returns the Class of the resource that can be built
- Returns:
- the type Class of the resource which can be built by this builder
-
-