Interface PropertyFactory
-
- All Known Implementing Classes:
ModelFactory
,ModelTest
,ModelTest2
public interface PropertyFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PropertyFactory.Property
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default PropertyFactory.Property
property(java.lang.String name, java.lang.String value)
default PropertyFactory.Property
property(NamedValue keyValuePair)
Factory method to define property.
-
-
-
Method Detail
-
property
default PropertyFactory.Property property(java.lang.String name, java.lang.String value)
-
property
default PropertyFactory.Property property(NamedValue keyValuePair)
Factory method to define property.
Key-value pair is a construct
key -> "value"
Where 'key' is the name of the property to set and "value" is it's string value.- Parameters:
keyValuePair
- - combination of key -> "value" pairs. Example:property(name1 -> "property_1")
- Returns:
- defined property
-
-