Class SitePropertyFieldTypeResolver


  • public final class SitePropertyFieldTypeResolver
    extends java.lang.Object
    Resolves the FieldType of a site property from its datastore key, using the suffix convention of the site properties form.

    Suffix convention (evaluated from the most specific to the most generic):

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FieldType fromKey​(java.lang.String strKey)
      Resolves the field type of a site property from its datastore key.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromKey

        public static FieldType fromKey​(java.lang.String strKey)
        Resolves the field type of a site property from its datastore key.
        Parameters:
        strKey - the full datastore key of the site property
        Returns:
        the resolved field type, FieldType.TEXT by default when no specific suffix matches or when the key is null