/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* This class implements an enumeration that may be used to define the
* ways in which an attribute may be indexed within the server.
*/
mayInstantiate=false,
mayExtend=false,
mayInvoke=true)
public enum IndexType
{
/**
* Used to denote a presence index, which may be used to identify
* entries containing the associated attribute (regardless of the
* value for that attribute).
*/
/**
* Used to denote an equality index, which may be used to identify
* entries containing a specified value for the associated
* attribute.
*/
/**
* Used to denote a substring index, which may be used to identify
* entries with one or more values for the associated attribute that
* match a given substring assertion. That substring assertion may
* contain any or all of subInitial, subAny, and subFinal elements.
*/
/**
* Used to denote a subInitial index, which may be used to identify
* entries with one or more values for the associated attribute that
* begin with a specified string.
*/
/**
* Used to denote a subAny index, which may be used to identify
* entries with one or more values for the associated attribute that
* contain a specified string.
*/
/**
* Used to denote a subFinal index, which may be used to identify
* entries with one or more values for the associated attribute that
* end with a specified string.
*/
/**
* Used to denote a greater-or-equal index, which may be used to
* identify entries with one or more values that are greater than or
* equal to a specified value.
*/
/**
* Used to denote a less-or-equal index, which may be used to
* identify entries with one or more values that are less than or
* equal to a specified value.
*/
/**
* Used to denote an approximate index, which may be used to
* identify entries with one or more values that are approximately
* equal to a specified value.
*/
/** The human-readable name for this index type. */
/**
* Creates a new index type with the specified name.
*
* @param indexName The human-readable name for this index type.
*/
{
}
/**
* Retrieves the index type for the specified name.
*
* @param indexName The name for which to retrieve the
* associated index type.
*
* @return The requested index type, or {@code null} if there is no
* such index type.
*/
{
{
return PRESENCE;
}
{
return EQUALITY;
}
{
return SUBSTRING;
}
{
return SUBINITIAL;
}
{
return SUBANY;
}
{
return SUBFINAL;
}
{
return GREATER_OR_EQUAL;
}
{
return LESS_OR_EQUAL;
}
{
return APPROXIMATE;
}
return null;
}
/**
* Retrieves the human-readable name for this index type.
*
* @return The human-readable name for this index type.
*/
{
return indexName;
}
}