public class PropertyValueBuilder extends Object
PropertyValue instance.| Modifier and Type | Method and Description |
|---|---|
PropertyValueBuilder |
addMetaEntries(Map<String,String> metaEntries)
Adds the context data given.
|
PropertyValueBuilder |
addMetaEntry(String key,
Object value)
Add an additional context data information.
|
PropertyValue |
build()
Creates a new immutable
PropertyValue. |
Map<String,String> |
getMetaEntries()
Get the value's context data.
|
PropertyValueBuilder |
mapKey(String key)
Changes the entry's key, mapping also corresponding context entries.
|
PropertyValueBuilder |
removeMetaEntry(String key)
Removes a meta entry.
|
PropertyValueBuilder |
setKey(String key)
Sets a new key.
|
PropertyValueBuilder |
setMetaEntries(Map<String,String> metaEntries)
Replaces/sets the context data.
|
PropertyValueBuilder |
setSource(String source)
Sets a new source.
|
PropertyValueBuilder |
setValue(String value)
Sets a new value.
|
String |
toString() |
public PropertyValueBuilder setMetaEntries(Map<String,String> metaEntries)
metaEntries - the context data to be applied, not null.public PropertyValueBuilder addMetaEntry(String key, Object value)
key - the context data key, not null.value - the context value, not null (will be converted to String).public PropertyValueBuilder addMetaEntries(Map<String,String> metaEntries)
metaEntries - the context data to be applied, not null.public PropertyValueBuilder removeMetaEntry(String key)
key - the entry's key, not null.public Map<String,String> getMetaEntries()
null.public PropertyValueBuilder mapKey(String key)
key - the new key, not null.public PropertyValueBuilder setKey(String key)
key - the new key, not null.public PropertyValueBuilder setValue(String value)
value - the new value, not null.public PropertyValueBuilder setSource(String source)
source - the new source, not null.public PropertyValue build()
PropertyValue.PropertyValue, never null.Copyright © 2014–2017 Apache Software Foundation. All rights reserved.