パッケージ 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
-
メソッドの概要
修飾子とタイプ メソッド 説明 boolean
equals(Object o)
static ContentProperty
from(@NonNull Class<?> contentObject, @NonNull String propertyFileName)
Returns the new instance ofContentProperty
based on an argument.String
getContentPackage()
Retrieves the content package name from the property file and returns it as a string.String
getMapperSuffix()
Retrieves the mapper suffix name from the property file and returns it as a string.int
hashCode()
String
toString()
-
メソッドの詳細
-
from
public static ContentProperty from(@NonNull @NonNull Class<?> contentObject, @NonNull @NonNull String propertyFileName)Returns the new instance ofContentProperty
based on an argument.- パラメータ:
contentObject
- The content objectpropertyFileName
- The file name of property file- 戻り値:
- The new isntance of
ContentProperty
- 例外:
NullPointerException
- Ifnull
is 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()
-