Class PropertyState


  • public class PropertyState
    extends ItemState
    PropertyState represents the state of a Property.
    • Method Detail

      • merge

        public ItemState.MergeResult merge​(ItemState another,
                                           boolean keepChanges)
        If keepChanges is true, this method only compares the existing values with the values from 'another' and returns true, if the underlying persistent state is different to the stored persistent values. Otherwise the transient changes will be discarded.
        Specified by:
        merge in class ItemState
        Returns:
        a MergeResult instance which represent the result of the merge operation
        See Also:
        ItemState.merge(ItemState, boolean)
      • revert

        public boolean revert()
        Description copied from class: ItemState
        Revert all transient modifications made to this ItemState.
        Specified by:
        revert in class ItemState
        Returns:
        true if
        See Also:
        ItemState.revert()
      • getType

        public int getType()
        Returns the type of the property value(s).
        Returns:
        the type of the property value(s).
        See Also:
        PropertyType, for the type required by the property definition. The effective type may differ from the required type if the latter is .
      • isMultiValued

        public boolean isMultiValued()
        Returns true if this property is multi-valued, otherwise false.
        Returns:
        true if this property is multi-valued, otherwise false.
      • getDefinition

        public org.apache.jackrabbit.spi.QPropertyDefinition getDefinition()
                                                                    throws RepositoryException
        Returns the definition defined for this property state. Note that the definition has been set upon creation of this PropertyState.
        Returns:
        definition of this state
        Throws:
        RepositoryException - If an error occurs.
      • getValues

        public org.apache.jackrabbit.spi.QValue[] getValues()
        Returns the value(s) of this property.
        Returns:
        the value(s) of this property.