Package sonia.scm
Interface PropertiesAware
- All Known Implementing Classes:
BasicPropertiesAware,Changeset,Group,Repository,User
public interface PropertiesAware
Base interface of all objects which have properties.
- Since:
- 1.6
-
Method Summary
Modifier and TypeMethodDescriptionReturns all properties.getProperty(String key) Returns the property value for the given key or null if the key does not exist.voidremoveProperty(String key) voidsetProperties(Map<String, String> properties) Sets all properties and overwrites existing ones.voidsetProperty(String key, String value) Sets a single property.
-
Method Details
-
removeProperty
-
getProperties
Returns all properties. -
getProperty
Returns the property value for the given key or null if the key does not exist.- Parameters:
key- - the key of the property
-
setProperties
Sets all properties and overwrites existing ones.- Parameters:
properties- to set
-
setProperty
Sets a single property.- Parameters:
key- - The key of the propertyvalue- - The value of the property
-