Class EmptyPropertyState

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EmptyPropertyState​(@NotNull java.lang.String name)
      Create a new property state with the given name
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int count()  
      static org.apache.jackrabbit.oak.api.PropertyState emptyProperty​(java.lang.String name, org.apache.jackrabbit.oak.api.Type<?> type)
      Create an empty PropertyState
      @NotNull java.lang.String getName()  
      <T> T getValue​(org.apache.jackrabbit.oak.api.Type<T> type)  
      <T> T getValue​(org.apache.jackrabbit.oak.api.Type<T> type, int index)  
      boolean isArray()  
      long size()  
      long size​(int index)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.jackrabbit.oak.api.PropertyState

        getType
    • Constructor Detail

      • EmptyPropertyState

        protected EmptyPropertyState​(@NotNull
                                     @NotNull java.lang.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​(java.lang.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:
        java.lang.IllegalArgumentException - if @code type.isArray()} is false.
      • getName

        @NotNull
        public @NotNull java.lang.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:
        java.lang.IllegalStateException - type.isArray() is false.
      • getValue

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

        public long size()
        Throws:
        java.lang.IllegalStateException - always
      • size

        public long size​(int index)
        Throws:
        java.lang.IndexOutOfBoundsException - always
      • count

        public int count()
        Returns:
        0