public class PropertyBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyBuilder.PropertyId |
| Constructor and Description |
|---|
PropertyBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static Property |
build(String type,
String format,
Map<PropertyBuilder.PropertyId,Object> args)
Creates new property on the passed arguments.
|
static Property |
merge(Property property,
Map<PropertyBuilder.PropertyId,Object> args)
Merges passed arguments into an existing property instance.
|
static Model |
toModel(Property property)
Converts passed property into a model.
|
public static Property build(String type, String format, Map<PropertyBuilder.PropertyId,Object> args)
type - property typeformat - property formatargs - mapping of argument identifier to valuenull for unknown typespublic static Property merge(Property property, Map<PropertyBuilder.PropertyId,Object> args)
property - property to be updatedargs - mapping of argument identifier to value. nulls
will replace existing valuesCopyright © 2019. All Rights Reserved.