public interface PropertySequence extends Sequence<javax.jcr.Property>
Sequence<Property> which provides methods
for adding and removing properties by key.| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Property |
addProperty(String key,
javax.jcr.Value value)
Add a property with the given
key and value. |
void |
removeProperty(String key)
Remove the property with the given key.
|
javax.jcr.Property addProperty(String key, javax.jcr.Value value) throws javax.jcr.RepositoryException
key and value.key - key of the property to addvalue - value of the property to addjavax.jcr.RepositoryExceptionvoid removeProperty(String key) throws javax.jcr.RepositoryException
key - The key of the property to removejavax.jcr.RepositoryException - If there is no property with such a key or
another error occurs.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.