PropertyValues interface.
Allows simple manipulation of properties, and provides constructors
to support deep copy and construction from a Map.
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private Set | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | MutablePropertyValues(Map<?, ?>
a Map with property values keyed by property name Strings original)Construct a new MutablePropertyValues object from a Map. |
| public | MutablePropertyValues(List<PropertyValue>
a List of PropertyValue objects propertyValueList)Construct a new MutablePropertyValues object using the given List of PropertyValue objects as-is. |
| Modifier and Type | Method and Description |
|---|---|
| public MutablePropertyValues | |
| public MutablePropertyValues | Returns: this in order to allow for adding multiple property values in a chainthe PropertyValue object to add pv)Add a PropertyValue object, replacing any existing one for the corresponding property or getting merged with it (if applicable). |
| public void | addPropertyValue(String
name of the property propertyName, Object value of the property propertyValue)Overloaded version of |
| public MutablePropertyValues | Returns: this in order to allow for adding multiple property values in a chainthe PropertyValues to copy other)Copy all given PropertyValues into this object. |
| public MutablePropertyValues | Returns: this in order to allow for adding multiple property values in a chaina Map with property values keyed by property name,
which must be a String other)Add all property values from the given Map. |
| public PropertyValues | changesSince(PropertyValues
the old property values old)Implements org. |
| public void | clearProcessedProperty(String propertyName)
Clear the "processed" registration of the given property, if any. |
| public boolean | contains(String
the name of the property we're interested in propertyName)Implements org. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Object | |
| public PropertyValue | getPropertyValue(String
the name to search for propertyName)Implements org. |
| public List | |
| public PropertyValue[] | getPropertyValues()
Implements org. |
| public int | |
| public boolean | isConverted()
Return whether this holder contains converted values only ( |
| public boolean | isEmpty()
Implements org. |
| public Iterator | iterator()
Overrides default org. Iterator over the property values.
|
| private PropertyValue | mergeIfRequired(PropertyValue newPv, PropertyValue currentPv)
Merges the value of the supplied 'new' |
| public void | registerProcessedProperty(String
the name of the property. propertyName)Register the specified property as "processed" in the sense of some processor calling the corresponding setter method outside the PropertyValue(s) mechanism. |
| public void | removePropertyValue(PropertyValue
the PropertyValue to remove pv)Remove the given PropertyValue, if contained. |
| public void | removePropertyValue(String
name of the property propertyName)Overloaded version of |
| public void | setConverted()
Mark this holder as containing converted values only (i.e. no runtime resolution needed anymore). |
| public void | |
| public int | |
| public Spliterator | spliterator()
Overrides default org. Spliterator over the property values.
|
| public Stream | stream()
Overrides default org. Stream containing the property values.
|
| public String |
| converted | back to summary |
|---|---|
| private volatile boolean converted | |
| processedProperties | back to summary |
|---|---|
| private Set<String> processedProperties
| |
| propertyValueList | back to summary |
|---|---|
| private final List<PropertyValue> propertyValueList | |
| MutablePropertyValues | back to summary |
|---|---|
| public MutablePropertyValues() Creates a new empty MutablePropertyValues object. Property values can be added with the
| |
| MutablePropertyValues | back to summary |
|---|---|
| public MutablePropertyValues(PropertyValues original) Deep copy constructor. Guarantees PropertyValue references are independent, although it can't deep copy objects currently referenced by individual PropertyValue objects.
| |
| MutablePropertyValues | back to summary |
|---|---|
| public MutablePropertyValues(Map<?, ?> original) Construct a new MutablePropertyValues object from a Map.
| |
| MutablePropertyValues | back to summary |
|---|---|
| public MutablePropertyValues(List<PropertyValue> propertyValueList) Construct a new MutablePropertyValues object using the given List of PropertyValue objects as-is. This is a constructor for advanced usage scenarios. It is not intended for typical programmatic use.
| |
| add | back to summary |
|---|---|
| public MutablePropertyValues add(String propertyName, Object propertyValue) Add a PropertyValue object, replacing any existing one for the corresponding property or getting merged with it (if applicable).
| |
| addPropertyValue | back to summary |
|---|---|
| public MutablePropertyValues addPropertyValue(PropertyValue pv) Add a PropertyValue object, replacing any existing one for the corresponding property or getting merged with it (if applicable).
| |
| addPropertyValue | back to summary |
|---|---|
| public void addPropertyValue(String propertyName, Object propertyValue) Overloaded version of Note we recommend using the more concise and chaining-capable variant
| |
| addPropertyValues | back to summary |
|---|---|
| public MutablePropertyValues addPropertyValues(PropertyValues other) Copy all given PropertyValues into this object. Guarantees PropertyValue references are independent, although it can't deep copy objects currently referenced by individual PropertyValue objects.
| |
| addPropertyValues | back to summary |
|---|---|
| public MutablePropertyValues addPropertyValues(Map<?, ?> other) Add all property values from the given Map.
| |
| changesSince | back to summary |
|---|---|
| public PropertyValues changesSince(PropertyValues old) Implements org. Doc from org. Return the changes since the previous PropertyValues.
Subclasses should also override
| |
| clearProcessedProperty | back to summary |
|---|---|
| public void clearProcessedProperty(String propertyName) Clear the "processed" registration of the given property, if any.
| |
| contains | back to summary |
|---|---|
| public boolean contains(String propertyName) Implements org. Doc from org. Is there a property value (or other processing entry) for this property? | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public Object get(String propertyName) Get the raw property value, if any.
| |
| getPropertyValue | back to summary |
|---|---|
| public PropertyValue getPropertyValue(String propertyName) Implements org. Doc from org. Return the property value with the given name, if any.
| |
| getPropertyValueList | back to summary |
|---|---|
| public List Return the underlying List of PropertyValue objects in its raw form. The returned List can be modified directly, although this is not recommended. This is an accessor for optimized access to all PropertyValue objects. It is not intended for typical programmatic use. | |
| getPropertyValues | back to summary |
|---|---|
| public PropertyValue[] getPropertyValues() Implements org. Doc from org. Return an array of the PropertyValue objects held in this object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isConverted | back to summary |
|---|---|
| public boolean isConverted() Return whether this holder contains converted values only ( | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements org. Doc from org. Does this holder not contain any PropertyValue objects at all?
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides default org. Doc from org. Return an
| |
| mergeIfRequired | back to summary |
|---|---|
| private PropertyValue mergeIfRequired(PropertyValue newPv, PropertyValue currentPv) Merges the value of the supplied 'new'
| |
| registerProcessedProperty | back to summary |
|---|---|
| public void registerProcessedProperty(String propertyName) Register the specified property as "processed" in the sense of some processor calling the corresponding setter method outside the PropertyValue(s) mechanism. This will lead to
| |
| removePropertyValue | back to summary |
|---|---|
| public void removePropertyValue(PropertyValue pv) Remove the given PropertyValue, if contained.
| |
| removePropertyValue | back to summary |
|---|---|
| public void removePropertyValue(String propertyName) Overloaded version of
| |
| setConverted | back to summary |
|---|---|
| public void setConverted() Mark this holder as containing converted values only (i.e. no runtime resolution needed anymore). | |
| setPropertyValueAt | back to summary |
|---|---|
| public void setPropertyValueAt(PropertyValue pv, int i) Modify a PropertyValue object held in this object. Indexed from 0. | |
| size | back to summary |
|---|---|
| public int size() Return the number of PropertyValue entries in the list. | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default org. Doc from org. Return a
| |
| stream | back to summary |
|---|---|
| public Stream Overrides default org. Doc from org. Return a sequential
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |