public interface IWithProperties
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(IWithProperties from,
IWithProperties to)
Copy all
IWithProperties Unless destination already has the property.
Properties are cloned before copying. |
Map<String,Property> |
getProperties() |
default Property |
getProperty(String name)
Gets the resource-level property for a given name.
|
default Set<String> |
getPropertyNames()
Gets the names of all the resource-level properties for this resource.
|
default boolean |
hasProperty(String name)
Indicates if a resource-level property exists for a given name.
|
default Iterator<Property> |
propertyIterator()
Gets an iterator of the properties for this resource.
|
default void |
removeProperty(String name)
Removes a resource-level property of a given name.
|
default Property |
setProperty(Property property)
Sets a resource-level property.
|
static void copy(IWithProperties from, IWithProperties to)
IWithProperties Unless destination already has the property.
Properties are cloned before copying.from - source of IWithPropertiesto - destination of IWithPropertiesMap<String,Property> getProperties()
Map of properties for the implementer of interfacedefault Property getProperty(String name)
name - Name of the property to retrieve.default Set<String> getPropertyNames()
default boolean hasProperty(String name)
name - The name of the resource-level property to query.default void removeProperty(String name)
name - The name of the property to remove.default Property setProperty(Property property)
property - The new property to set.Copyright © 2021. All rights reserved.