Class EmptyRepository

  • All Implemented Interfaces:
    Repository

    public class EmptyRepository
    extends AbstractRepository
    An empty repository with no descriptors and no workspaces. This class can be used as a dummy sentinel in cases where a proper content repository is not available.
    Since:
    1.4
    • Constructor Detail

      • EmptyRepository

        public EmptyRepository()
    • Method Detail

      • getDescriptor

        public String getDescriptor​(String key)
        Returns null since this repository contains no descriptors.
        Parameters:
        key - descriptor key
        Returns:
        null
      • getDescriptorValue

        public Value getDescriptorValue​(String key)
        Returns null since this repository contains no descriptors.
        Parameters:
        key - descriptor key
        Returns:
        null
      • getDescriptorValues

        public Value[] getDescriptorValues​(String key)
        Returns null since this repository contains no descriptors.
        Parameters:
        key - descriptor key
        Returns:
        null
      • isSingleValueDescriptor

        public boolean isSingleValueDescriptor​(String key)
        Returns false since this repository contains no descriptors.
        Parameters:
        key - descriptor key
        Returns:
        false
      • getDescriptorKeys

        public String[] getDescriptorKeys()
        Returns an empty array since this repository contains no descriptors.
        Returns:
        empty array