Interface PropertySequence

  • All Superinterfaces:
    java.lang.Iterable<javax.jcr.Property>, Sequence<javax.jcr.Property>

    public interface PropertySequence
    extends Sequence<javax.jcr.Property>
    Extension of Sequence<Property> which provides methods for adding and removing properties by key.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.jcr.Property addProperty​(java.lang.String key, javax.jcr.Value value)
      Add a property with the given key and value.
      void removeProperty​(java.lang.String key)
      Remove the property with the given key.
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • addProperty

        javax.jcr.Property addProperty​(java.lang.String key,
                                       javax.jcr.Value value)
                                throws javax.jcr.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:
        javax.jcr.RepositoryException
      • removeProperty

        void removeProperty​(java.lang.String key)
                     throws javax.jcr.RepositoryException
        Remove the property with the given key.
        Parameters:
        key - The key of the property to remove
        Throws:
        javax.jcr.RepositoryException - If there is no property with such a key or another error occurs.