パッケージ 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
  • メソッドの詳細

    • from

      public static ContentProperty from​(@NonNull @NonNull Class<?> contentObject, @NonNull @NonNull String propertyFileName)
      Returns the new instance of ContentProperty based on an argument.
      パラメータ:
      contentObject - The content object
      propertyFileName - The file name of property file
      戻り値:
      The new isntance of ContentProperty
      例外:
      NullPointerException - If null is passed as an argument
    • getContentPackage

      public String 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

      public String 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

      public String toString()
      オーバーライド:
      toString クラス内 Object
    • equals

      public boolean equals​(Object o)
      オーバーライド:
      equals クラス内 Object
    • hashCode

      public int hashCode()
      オーバーライド:
      hashCode クラス内 Object