public class PropertyBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PropertyBuilder.PropertyId |
Constructor and Description |
---|
PropertyBuilder() |
Modifier and Type | Method and Description |
---|---|
static Property |
build(java.lang.String type,
java.lang.String format,
java.util.Map<PropertyBuilder.PropertyId,java.lang.Object> args)
Creates new property on the passed arguments.
|
static Property |
merge(Property property,
java.util.Map<PropertyBuilder.PropertyId,java.lang.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(java.lang.String type, java.lang.String format, java.util.Map<PropertyBuilder.PropertyId,java.lang.Object> args)
type
- property typeformat
- property formatargs
- mapping of argument identifier to valuenull
for unknown typespublic static Property merge(Property property, java.util.Map<PropertyBuilder.PropertyId,java.lang.Object> args)
property
- property to be updatedargs
- mapping of argument identifier to value. null
s
will replace existing valuesCopyright © 2020 JBoss by Red Hat. All Rights Reserved.