パッケージ org.thinkit.zenna.config
クラス ContentProperty
java.lang.Object
org.thinkit.zenna.config.ContentProperty
public final class ContentProperty extends Object
A class that represents a content property file.
- 導入されたバージョン:
- 1.0.0
-
メソッドの概要
修飾子とタイプ メソッド 説明 booleanequals(Object o)static ContentPropertyfrom(@NonNull Class<?> contentObject, @NonNull String propertyFileName)Returns the new instance ofContentPropertybased on an argument.StringgetContentPackage()Retrieves the content package name from the property file and returns it as a string.StringgetMapperSuffix()Retrieves the mapper suffix name from the property file and returns it as a string.inthashCode()StringtoString()
-
メソッドの詳細
-
from
public static ContentProperty from(@NonNull @NonNull Class<?> contentObject, @NonNull @NonNull String propertyFileName)Returns the new instance ofContentPropertybased on an argument.- パラメータ:
contentObject- The content objectpropertyFileName- The file name of property file- 戻り値:
- The new isntance of
ContentProperty - 例外:
NullPointerException- Ifnullis passed as an argument
-
getContentPackage
Retrieves the content package name from the property file and returns it as a string. If"contentPackage"is not set in the property file, an empty string will be returned.- 戻り値:
- The content package name set in the property file
-
getMapperSuffix
Retrieves the mapper suffix name from the property file and returns it as a string. If"mapperSuffix"is not set in the property file, an empty string will be returned.- 戻り値:
- The mapper suffix name set in the property file
-
toString
-
equals
-
hashCode
public int hashCode()
-