Interface PropertySequence
Extension of
Sequence<Property> which provides methods
for adding and removing properties by key.-
Method Summary
Modifier and TypeMethodDescriptionaddProperty(String key, Value value) Add a property with the givenkeyandvalue.voidremoveProperty(String key) Remove the property with the given key.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addProperty
Add a property with the givenkeyandvalue.- Parameters:
key- key of the property to addvalue- value of the property to add- Returns:
- the newly added property
- Throws:
RepositoryException
-
removeProperty
Remove the property with the given key.- Parameters:
key- The key of the property to remove- Throws:
RepositoryException- If there is no property with such a key or another error occurs.
-