Class SimplePropertyDefinition

    • Constructor Detail

      • SimplePropertyDefinition

        public SimplePropertyDefinition​(java.lang.String key,
                                        TypeConverter typeConverter)
      • SimplePropertyDefinition

        public SimplePropertyDefinition​(java.lang.String key,
                                        boolean optional,
                                        TypeConverter typeConverter)
      • SimplePropertyDefinition

        public SimplePropertyDefinition​(java.lang.String key,
                                        boolean optional,
                                        TypeConverter typeConverter,
                                        ValueValidator validator)
    • Method Detail

      • key

        public java.lang.String key()
        Description copied from interface: PropertyDefinition
        Returns the key (the name) of this property inside the configuration.
        Specified by:
        key in interface PropertyDefinition
        Returns:
        returns the property key
      • validator

        public ValueValidator validator()
        Description copied from interface: PropertyDefinition
        Returns an optional validator to validate a value before finalizing the configuration.
        Specified by:
        validator in interface PropertyDefinition
        Returns:
        the optional validator. Is allowed to be null in case there is no validation required.
      • optional

        public boolean optional()
        Description copied from interface: PropertyDefinition
        Defines if this property is optional or not. Optional properties don't have to be set inside the configuration but if set they need to pass a possibly defined ValueValidator test.
        Specified by:
        optional in interface PropertyDefinition
        Returns:
        true if this property is optional, false otherwise