org.apache.jackrabbit.commons.flat
Interface PropertySequence

All Superinterfaces:
Iterable<Property>, Sequence<Property>
All Known Implementing Classes:
ItemSequence.PropertySequenceImpl

public interface PropertySequence
extends Sequence<Property>

Extension of Sequence<Property> which provides methods for adding and removing properties by key.


Method Summary
 Property addProperty(String key, Value value)
          Add a property with the given key and value.
 void removeProperty(String key)
          Remove the property with the given key.
 
Methods inherited from interface org.apache.jackrabbit.commons.flat.Sequence
getItem, hasItem, iterator
 

Method Detail

addProperty

Property addProperty(String key,
                     Value value)
                     throws RepositoryException
Add a property with the given key and value.

Parameters:
key - key of the property to add
value - value of the property to add
Returns:
the newly added property
Throws:
RepositoryException

removeProperty

void removeProperty(String key)
                    throws RepositoryException
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.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.