Class EmptyPropertyState

    • Constructor Detail

      • EmptyPropertyState

        protected EmptyPropertyState​(@NotNull
                                     @NotNull String name)
        Create a new property state with the given name
        Parameters:
        name - The name of the property state.
    • Method Detail

      • emptyProperty

        public static org.apache.jackrabbit.oak.api.PropertyState emptyProperty​(String name,
                                                                                org.apache.jackrabbit.oak.api.Type<?> type)
        Create an empty PropertyState
        Parameters:
        name - The name of the property state
        type - The type of the property state
        Returns:
        The new property state
        Throws:
        IllegalArgumentException - if @code type.isArray()} is false.
      • getName

        @NotNull
        public @NotNull String getName()
      • isArray

        public boolean isArray()
        Returns:
        true
      • getValue

        @NotNull
        public <T> T getValue​(org.apache.jackrabbit.oak.api.Type<T> type)
        Returns:
        An empty list if type.isArray() is true.
        Throws:
        IllegalStateException - type.isArray() is false.
      • getValue

        @NotNull
        public <T> T getValue​(org.apache.jackrabbit.oak.api.Type<T> type,
                              int index)
        Throws:
        IndexOutOfBoundsException - always
      • count

        public int count()
        Returns:
        0