Package org.basex.index
Class IndexNames
java.lang.Object
org.basex.index.IndexNames
Names and namespace uris of elements/attribute to index.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(byte[][] qname) Checks if the specified name is an index candidate.booleancontains(int pre, boolean text) Checks if the name of the addressed database entry is to be indexed.booleancontainsIds(boolean idref) Checks if the index names contain all relevant id or idref attributes.booleanisEmpty()Checks if the list of names is empty.
-
Constructor Details
-
IndexNames
Constructor.- Parameters:
type- index typedata- data reference
-
-
Method Details
-
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 valuetext- 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 benull)- 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
-