public class SimplePropertyDefinition extends Object implements PropertyDefinition
PropertyDefinition for convenience of implementors.| Constructor and Description | 
|---|
| SimplePropertyDefinition(String key,
                        boolean optional,
                        TypeConverter typeConverter) | 
| SimplePropertyDefinition(String key,
                        boolean optional,
                        TypeConverter typeConverter,
                        ValueValidator validator) | 
| SimplePropertyDefinition(String key,
                        TypeConverter typeConverter) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | key()Returns the key (the name) of this property inside the configuration. | 
| boolean | optional()Defines if this property is optional or not. | 
| TypeConverter | typeConverter()The  TypeConverterto be used to convert the
 string value read from XML to the expected type automatically. | 
| ValueValidator | validator()Returns an optional validator to validate a value before finalizing the
 configuration. | 
public SimplePropertyDefinition(String key, TypeConverter typeConverter)
public SimplePropertyDefinition(String key, boolean optional, TypeConverter typeConverter)
public SimplePropertyDefinition(String key, boolean optional, TypeConverter typeConverter, ValueValidator validator)
public TypeConverter typeConverter()
PropertyDefinitionTypeConverter to be used to convert the
 string value read from XML to the expected type automatically.typeConverter in interface PropertyDefinitionpublic String key()
PropertyDefinitionkey in interface PropertyDefinitionpublic ValueValidator validator()
PropertyDefinitionvalidator in interface PropertyDefinitionnull in case
 there is no validation required.public boolean optional()
PropertyDefinitionValueValidator
 test.optional in interface PropertyDefinitiontrue if this property is optional, false otherwiseCopyright © 2020 Hazelcast, Inc.. All rights reserved.