Package sonia.scm
Class BasicPropertiesAware
java.lang.Object
sonia.scm.BasicPropertiesAware
- All Implemented Interfaces:
Serializable,PropertiesAware
- Direct Known Subclasses:
Changeset,Group,Repository,User
Default implementation of
PropertiesAware interface.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionmap to hold the properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns all properties.getProperty(String key) Returns the property value for the given key or null if the key does not exist.inthashCode()voidremoveProperty(String key) voidsetProperties(Map<String, String> properties) Sets all properties and overwrites existing ones.voidsetProperty(String key, String value) Sets a single property.
-
Field Details
-
properties
map to hold the properties
-
-
Constructor Details
-
BasicPropertiesAware
public BasicPropertiesAware()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
removeProperty
- Specified by:
removePropertyin interfacePropertiesAware
-
getProperties
Description copied from interface:PropertiesAwareReturns all properties.- Specified by:
getPropertiesin interfacePropertiesAware
-
getProperty
Description copied from interface:PropertiesAwareReturns the property value for the given key or null if the key does not exist.- Specified by:
getPropertyin interfacePropertiesAware- Parameters:
key- - the key of the property
-
setProperties
Description copied from interface:PropertiesAwareSets all properties and overwrites existing ones.- Specified by:
setPropertiesin interfacePropertiesAware- Parameters:
properties- to set
-
setProperty
Description copied from interface:PropertiesAwareSets a single property.- Specified by:
setPropertyin interfacePropertiesAware- Parameters:
key- - The key of the propertyvalue- - The value of the property
-