Class PropertyType

  • All Implemented Interfaces:
    Localized, java.io.Serializable

    public class PropertyType
    extends java.lang.Object
    implements java.io.Serializable, Localized
    This represents a simple type system that is a bridge between documents/json which aren't very strongly typed, and our/java's type system, mostly for the purpose of storing/using properties. Many properties are well known, meaning statically defined and registered such that we know exactly what the type should be. But if not, we have to derive a type. In other places, we want to be able to specify a type for an arbitrary property,and this will be the list of options we allow.
    See Also:
    Serialized Form
    • Method Detail

      • getJavaType

        public java.lang.Class<?> getJavaType()
      • getFor

        public static PropertyType getFor​(java.lang.Class<?> clazz)
      • toString

        public java.lang.String toString​(java.util.Locale locale)
        Specified by:
        toString in interface Localized
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object