Class ItemInfoBuilder.PropertyInfoBuilder

    • Method Detail

      • setType

        public ItemInfoBuilder.PropertyInfoBuilder setType​(int type)
        Set the type of this property
        Parameters:
        type -
        Returns:
        this
        Throws:
        java.lang.IllegalStateException - if a property of a different type has been added before.
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(QValue value)
        Add a value to this property. Sets this property to single valued if this is the first value. Otherwise sets this property to multi-valued.
        Parameters:
        value -
        Returns:
        this
        Throws:
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(java.lang.String value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.STRING value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(java.util.Calendar value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.DATE value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(double value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.DOUBLE value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(long value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.LONG value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(boolean value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.BOOLEAN value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(Name value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.NAME value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(Path value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.PATH value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(java.math.BigDecimal value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.DECIMAL value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(java.net.URI value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.URI value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(byte[] value)
                                                     throws javax.jcr.RepositoryException
        Add a PropertyType.BINARY value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(java.io.InputStream value)
                                                     throws javax.jcr.RepositoryException,
                                                            java.io.IOException
        Add a PropertyType.BINARY value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
        java.io.IOException
      • addValue

        public ItemInfoBuilder.PropertyInfoBuilder addValue​(java.io.File value)
                                                     throws javax.jcr.RepositoryException,
                                                            java.io.IOException
        Add a PropertyType.BINARY value to this property.
        Parameters:
        value -
        Returns:
        this
        Throws:
        javax.jcr.RepositoryException
        java.lang.IllegalStateException - if the type of the value does not match the type of this property
        java.io.IOException
      • setMultivalued

        public ItemInfoBuilder.PropertyInfoBuilder setMultivalued​(boolean on)
        Set this property to multi-values.
        Parameters:
        on -
        Returns:
        this
        Throws:
        java.lang.IllegalStateException - if this property does not contain exactly on value
      • getPropertyInfo

        public PropertyInfo getPropertyInfo()
        Returns the PropertyInfo which has been built by this builder.
        Returns:
        Throws:
        java.lang.IllegalStateException - if build() has not been called before.