Class StringProperty

    • Method Detail

      • isNormalized

        public boolean isNormalized​(Object value)
        Description copied from interface: Property
        Checks if the given value is a normalized one. This means the value has a type that is normalized.

        Null values are considered as normalized.

        Specified by:
        isNormalized in interface Property
        Overrides:
        isNormalized in class AbstractProperty
        Parameters:
        value - the value to check
        Returns:
        true if the value is normalized false otherwise
      • newInstance

        public Object newInstance()
        Description copied from interface: Property
        Creates a new and empty instance of a normalized value.

        Empty is used in the sense of a value that has not been initialized or can be considered as an empty value. For example for the String type the empty value will be the empty string ""

        Specified by:
        newInstance in interface Property
        Overrides:
        newInstance in class AbstractProperty
        Returns:
        the empty instance the empty instance, or null for some implementations