インタフェース Content<R extends ContentEntity>
public interface Content<R extends ContentEntity>
The interface that abstracts the content.
When implementing the Content
interface, specify the type of the
value returned by the execute()
method as a generic type.
- 導入されたバージョン:
- 1.0.0
-
メソッドの概要
修飾子とタイプ メソッド 説明 R
execute()
Returns the data got from the content as the data type specified when implementing theContent
interface.Set<Attribute>
getAttributes()
Returns the Set containing the name of the target attribute to be retrieved from the content file.List<Map<Condition,String>>
getConditions()
Returns the list containing the conditions for get the content.default List<Map<String,String>>
loadContent(@NonNull Content<R> content)
Refers to the content file associated with the content object passed as an argument and perform the loading process.
-
メソッドの詳細
-
getAttributes
Returns the Set containing the name of the target attribute to be retrieved from the content file.- 戻り値:
- The Set containing the name of the target attribute to be retrieved from the content file
-
getConditions
Returns the list containing the conditions for get the content.- 戻り値:
- The list containing the conditions for get the content
-
execute
R execute()Returns the data got from the content as the data type specified when implementing theContent
interface.- 戻り値:
- The data got from the content as the data type specified when
implementing the
Content
interface
-
loadContent
Refers to the content file associated with the content object passed as an argument and perform the loading process.- パラメータ:
content
- The content- 戻り値:
- A map containing the content data for the
content
specified as an argument - 例外:
NullPointerException
- Ifnull
is passed as an argumentorg.thinkit.framework.content.ContentHandlingException
- If the return value of the implementedgetAttributes()
method isnull
, or if the return value of thegetAttributes()
method is an empty list
-