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 TypeMethodDescriptionboolean
Returns all properties.getProperty
(String key) Returns the property value for the given key or null if the key does not exist.int
hashCode()
void
removeProperty
(String key) void
setProperties
(Map<String, String> properties) Sets all properties and overwrites existing ones.void
setProperty
(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:
removeProperty
in interfacePropertiesAware
-
getProperties
Description copied from interface:PropertiesAware
Returns all properties.- Specified by:
getProperties
in interfacePropertiesAware
-
getProperty
Description copied from interface:PropertiesAware
Returns the property value for the given key or null if the key does not exist.- Specified by:
getProperty
in interfacePropertiesAware
- Parameters:
key
- - the key of the property
-
setProperties
Description copied from interface:PropertiesAware
Sets all properties and overwrites existing ones.- Specified by:
setProperties
in interfacePropertiesAware
- Parameters:
properties
- to set
-
setProperty
Description copied from interface:PropertiesAware
Sets a single property.- Specified by:
setProperty
in interfacePropertiesAware
- Parameters:
key
- - The key of the propertyvalue
- - The value of the property
-