Class IndexNames


  • public final class IndexNames
    extends Object
    Names and namespace uris of elements/attribute to index.
    Author:
    BaseX Team 2005-24, BSD License, Christian Gruen
    • Constructor Detail

      • IndexNames

        public IndexNames​(IndexType type,
                          Data data)
        Constructor.
        Parameters:
        type - index type
        data - data reference
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Checks if the list of names is empty.
        Returns:
        result of check
      • contains

        public boolean contains​(int pre,
                                boolean text)
        Checks if the name of the addressed database entry is to be indexed.
        Parameters:
        pre - pre value
        text - text flag
        Returns:
        result of check
      • contains

        public boolean contains​(byte[][] qname)
        Checks if the specified name is an index candidate.
        Parameters:
        qname - local name and namespace uri (reference or array entries can be null)
        Returns:
        result of check
      • containsIds

        public boolean containsIds​(boolean idref)
        Checks if the index names contain all relevant id or idref attributes.
        Parameters:
        idref - idref flag
        Returns:
        result of check