Interface Descriptors

All Known Implementing Classes:
AggregatingDescriptors, GenericDescriptors, JcrDescriptorsImpl

public interface Descriptors
Repository descriptors interface that is used to support providing the repository descriptors of Repository
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String[]
    Returns a string array holding all descriptor keys available for this implementation, both the standard descriptors defined by the string constants in this interface and any implementation-specific descriptors.
    @Nullable Value
    getValue(@NotNull String key)
    The value of a single-value descriptor is found by passing the key for that descriptor to this method.
    @Nullable Value[]
    getValues(@NotNull String key)
    The value array of a multi-value descriptor is found by passing the key for that descriptor to this method.
    boolean
    Returns true if key is a valid single-value descriptor; otherwise returns false
    boolean
    Returns true if key is a standard descriptor defined by the string constants in this interface and false if it is either a valid implementation-specific key or not a valid key.
  • Method Details

    • getKeys

      @NotNull @NotNull String[] getKeys()
      Returns a string array holding all descriptor keys available for this implementation, both the standard descriptors defined by the string constants in this interface and any implementation-specific descriptors. Used in conjunction with getValue(String key) and getValues(String key) to query information about this repository implementation.
      Returns:
      a string array holding all descriptor keys.
    • isStandardDescriptor

      boolean isStandardDescriptor(@NotNull @NotNull String key)
      Returns true if key is a standard descriptor defined by the string constants in this interface and false if it is either a valid implementation-specific key or not a valid key.
      Parameters:
      key - a descriptor key.
      Returns:
      whether key is a standard descriptor.
    • isSingleValueDescriptor

      boolean isSingleValueDescriptor(@NotNull @NotNull String key)
      Returns true if key is a valid single-value descriptor; otherwise returns false
      Parameters:
      key - a descriptor key.
      Returns:
      whether the specified descriptor is multi-valued.
      Since:
      JCR 2.0
    • getValue

      @Nullable @Nullable Value getValue(@NotNull @NotNull String key)
      The value of a single-value descriptor is found by passing the key for that descriptor to this method. If key is the key of a multi-value descriptor or not a valid key this method returns null.
      Parameters:
      key - a descriptor key.
      Returns:
      The value of the indicated descriptor
    • getValues

      @Nullable @Nullable Value[] getValues(@NotNull @NotNull String key)
      The value array of a multi-value descriptor is found by passing the key for that descriptor to this method. If key is the key of a single-value descriptor then this method returns that value as an array of size one. If key is not a valid key this method returns null.
      Parameters:
      key - a descriptor key.
      Returns:
      the value array for the indicated descriptor