Package com.hazelcast.config.properties
Class SimplePropertyDefinition
java.lang.Object
com.hazelcast.config.properties.SimplePropertyDefinition
- All Implemented Interfaces:
- PropertyDefinition
Simple immutable implementation of 
PropertyDefinition for convenience of implementors.- 
Constructor SummaryConstructorsConstructorDescriptionSimplePropertyDefinition(String key, boolean optional, TypeConverter typeConverter) SimplePropertyDefinition(String key, boolean optional, TypeConverter typeConverter, ValueValidator validator) SimplePropertyDefinition(String key, TypeConverter typeConverter) 
- 
Method SummaryModifier and TypeMethodDescriptionkey()Returns the key (the name) of this property inside the configuration.booleanoptional()Defines if this property is optional or not.TheTypeConverterto be used to convert the string value read from XML to the expected type automatically.Returns an optional validator to validate a value before finalizing the configuration.
- 
Constructor Details- 
SimplePropertyDefinition
- 
SimplePropertyDefinition
- 
SimplePropertyDefinitionpublic SimplePropertyDefinition(String key, boolean optional, TypeConverter typeConverter, ValueValidator validator) 
 
- 
- 
Method Details- 
typeConverterDescription copied from interface:PropertyDefinitionTheTypeConverterto be used to convert the string value read from XML to the expected type automatically.- Specified by:
- typeConverterin interface- PropertyDefinition
- Returns:
- a defined type converter to convert from string to another type
 
- 
keyDescription copied from interface:PropertyDefinitionReturns the key (the name) of this property inside the configuration.- Specified by:
- keyin interface- PropertyDefinition
- Returns:
- returns the property key
 
- 
validatorDescription copied from interface:PropertyDefinitionReturns an optional validator to validate a value before finalizing the configuration.- Specified by:
- validatorin interface- PropertyDefinition
- Returns:
- the optional validator. Is allowed to be nullin case there is no validation required.
 
- 
optionalpublic boolean optional()Description copied from interface:PropertyDefinitionDefines 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 definedValueValidatortest.- Specified by:
- optionalin interface- PropertyDefinition
- Returns:
- trueif this property is optional,- falseotherwise
 
 
-